expo-starter / expo-local-first-template

📱 A template for your local-first Expo project: Bun, Expo 51, TypeScript, TailwindCSS, DrizzleORM, Sqlite, EAS, GitHub Actions, Env Vars, expo-router, react-hook-form.
https://expostarter.com
Apache License 2.0
173 stars 10 forks source link

Tried everything, but there's no components that are being displayed. #20

Closed ghoshRitesh12 closed 3 weeks ago

ghoshRitesh12 commented 2 months ago

Hello, I am new to react native world and I wanted to use native wind v4 with expo router v3 and things weren't working out for me. Then I stumbled upon this repo and since it claims that it working with the above librarie, I tried it out and did everything that this repo does but still am facing an issue. As shown below am using dark mode and the entire screen turns black, although there's logs that are apprearing when the -layout.ts file is being rendered. What am I doing wrong?

image

younes200 commented 2 months ago

Hi @ghoshRitesh12 Could you please update the repositorygit pull and retry these steps?

git clone git@github.com:expo-starter/expo-template.git
bun install
bun android

There was a minor issue with the icon naming, however, I managed to run the app. Here is the screenshot and the dark mode:

Screenshot_1722266042

geoman2 commented 1 month ago

Hi younes200 What's the progress of this project, is D1 supported?

Also, what do you think about https://github.com/OP-Engineering/op-sqlite, seems to be the most performant sqlite for expo. The author also added support for libsql, the sqlite fork run and maintained by turso project in cloud, but being open-source can be run on own servers by everyone, a good alternative to D1. https://ospfranco.notion.site/Libsql-Support-c56ac2afb939460182ee7bd910b08fbf Also he added reactive queries support https://ospfranco.notion.site/Reactive-Queries-fc4ad3f25017478f9df39b3cbda7ec83

younes200 commented 1 month ago

Hi @geoman2,

Development on D1 is ongoing. It's currently compatible with Drizzble right out of the box, but it likely won't support offline mode.

The recent integration of libsql in op-sqlite could potentially lead to a smooth integration with drizzle-orm. However, incorporating op-sqlite into an expo project isn't exactly straightforward, and creating an expo-module may be beneficial for this purpose.

Nevertheless, I plan to include op-sqlite integration into the development roadmap as it's the good choice for creating a local-first application.

Thanks for your suggestion ;)