You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Step 2 - Update Gradle Settings (located under Gradle Settings in Project Panel)
157
+
158
+
** React Native 0.59 and below **
159
+
160
+
#### Step 1 - Update Gradle Settings (located under Gradle Settings in Project Panel)
135
161
136
162
```gradle
137
163
// file: android/settings.gradle
@@ -141,7 +167,7 @@ include ':react-native-sqlite-storage'
141
167
project(':react-native-sqlite-storage').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sqlite-storage/src/android')
142
168
```
143
169
144
-
#### Step 3 - Update app module Gradle Build script (located under Gradle Settings in Project Panel)
170
+
#### Step 2 - Update app module Gradle Build script (located under Gradle Settings in Project Panel)
145
171
146
172
```gradle
147
173
// file: android/app/build.gradle
@@ -153,7 +179,7 @@ dependencies {
153
179
}
154
180
```
155
181
156
-
#### Step 4 - Register React Package (this should work on React version but if it does not , try the ReactActivity based approach. Note: for version 3.0.0 and below you would have to pass in the instance of your Activity to the SQLitePluginPackage constructor
182
+
#### Step 3 - Register React Package (this should work on React version but if it does not , try the ReactActivity based approach. Note: for version 3.0.0 and below you would have to pass in the instance of your Activity to the SQLitePluginPackage constructor
157
183
158
184
```java
159
185
...
@@ -205,7 +231,7 @@ public class MainApplication extends Application implements ReactApplication {
205
231
}
206
232
```
207
233
208
-
#### Step5 - Require and use in Javascript - see full examples (callbacksandPromise) in test directory.
234
+
#### Step4 - Require and use in Javascript - see full examples (callbacksandPromise) in test directory.
0 commit comments