This is an Expo project with Drizzle ORM and Expo SQLite.
It dynamically loads the SQLiteProvider component on native platforms only. For the web platform it just returns a dummy provider with the children.
Now I can still use the expo web
command to move fast, with a first-pass at the UI.
const SQLiteProvider = Platform.select({
native: () => require("@/components/providers/SQLiteProvider").default,
default: () =>
function Provider({ children }: { children: React.ReactNode }) {
return children;
},
})();