@@ -48,23 +48,54 @@ Follow the [React Native environment setup guide](https://reactnative.dev/docs/s
4848
4949### 3. Configure Environment Variables
5050
51- 1 . ** Create a ` .env ` file **
51+ 1 . ** Create configuration files **
5252
5353 ``` bash
5454 cd examples/sync-demo-expo
5555 cp .env.example .env
56+ cp eas.json.example eas.json
5657 ```
5758
58- 2 . ** Fill in your credentials** in the ` .env ` file:
59+ 2 . ** Set up an Expo project** (for push notifications)
60+
61+ - Go to [ Expo Dashboard] ( https://expo.dev/ )
62+ - Create a new account or sign in
63+ - Create a new project and copy your ** Project ID**
64+
65+ 3 . ** Fill in your ` .env ` file**
5966
6067 ``` env
68+ # SQLite Cloud credentials
6169 SQLITE_CLOUD_CONNECTION_STRING=sqlitecloud://your-host.sqlite.cloud:8860/your-database
6270 SQLITE_CLOUD_API_KEY=your-api-key-here
6371 DATABASE_NAME=sync-demo.db
6472 TABLE_NAME=test_table
73+
74+ # Expo/EAS configuration
75+ EAS_PROJECT_ID=your-eas-project-id
76+ IOS_BUNDLE_IDENTIFIER=com.yourcompany.sqlitesyncexample
77+ ANDROID_PACKAGE=com.yourcompany.sqlitesyncexample
78+ ```
79+
80+ ** Note** : The ` TABLE_NAME ` must match the table you created in SQLite Cloud and enabled for OffSync.
81+
82+ 4 . ** Set up push notification credentials**
83+
84+ ``` bash
85+ # Configure iOS APNs credentials
86+ eas credentials -p ios
87+
88+ # Configure Android FCM credentials (optional)
89+ eas credentials -p android
6590 ```
6691
67- ** Note** : The ` TABLE_NAME ` must match the table name you created in SQLite Cloud and enabled for OffSync.
92+ 5 . ** Configure Firebase for Android (optional)**
93+
94+ If you want push notifications on Android:
95+
96+ - Create a Firebase project at [ Firebase Console] ( https://console.firebase.google.com/ )
97+ - Add an Android app with your package name
98+ - Download ` google-services.json ` and place it in this directory
6899
69100### 4. Install Dependencies
70101
0 commit comments