Skip to content

glenkitchen/expo-drizzle-sqlite

Repository files navigation

Overview

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.

Implementation

const SQLiteProvider = Platform.select({
  native: () => require("@/components/providers/SQLiteProvider").default,
  default: () =>
    function Provider({ children }: { children: React.ReactNode }) {
      return children;
    },
})();

About

An Expo project with Drizzle ORM and ExpoSQLite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published