This is a small Expo 53 demo created with npx create-expo-app@latest StickerSmash
which has been roughly extended to use PowerSync.
This repo tries to reproduce the issue from this Discord post.
The dependencies here try and match the dependencies mentioned here. This requires Yarn in order to install correctly (the base template app installs with NPM, but not after applying these changes).
yarn install
The demo here can be tested against a Supabase (default) backend or local self hosted backend.
The connect logic in app/(tabs)/index.tsx
is configured to use Supabase by default. The schema follows that of our Todolist demo.
- Copy the
.env.template
file to a.env
file and input the required values. - Run the App and click the
Create an Item
button. This should create an item locally which should be uploaded. - Uploads should succeed.
This demo can be configured to attempt uploads to a locally hosted Node.js backend. See our self hosted demo for more details.
- Change the
connect
call inapp/(tabs)/index.tsx
to connect using theDemoConnector
. - Run the Node.Js self hosted demo using Docker compose.
- Run the app. If using Android, remember to proxy local ports to the device.
adb reverse tcp:8080 tcp:8080
adb reverse tcp:6060 tcp:6060