File tree 3 files changed +4
-5
lines changed
android/src/main/java/io/fullstack/firestack
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ public class MainApplication extends Application implements ReactApplication {
149
149
protected List<ReactPackage > getPackages () {
150
150
return Arrays . < ReactPackage > asList(
151
151
new MainReactPackage (),
152
- new FirestackPackage (getApplicationContext() )
152
+ new FirestackPackage ()
153
153
);
154
154
}
155
155
};
Original file line number Diff line number Diff line change 15
15
public class FirestackPackage implements ReactPackage {
16
16
private Context mContext ;
17
17
18
- public FirestackPackage (Context ctx ) {
19
- mContext = ctx ;
18
+ public FirestackPackage () {
20
19
}
21
20
/**
22
21
* @param reactContext react application context that can be used to create modules
@@ -26,7 +25,7 @@ public FirestackPackage(Context ctx) {
26
25
public List <NativeModule > createNativeModules (ReactApplicationContext reactContext ) {
27
26
List <NativeModule > modules = new ArrayList <>();
28
27
29
- modules .add (new FirestackModule (reactContext , mContext ));
28
+ modules .add (new FirestackModule (reactContext , reactContext . getBaseContext () ));
30
29
modules .add (new FirestackAuthModule (reactContext ));
31
30
modules .add (new FirestackDatabaseModule (reactContext ));
32
31
modules .add (new FirestackAnalyticsModule (reactContext ));
Original file line number Diff line number Diff line change 47
47
"project" : " ios/Firestack.xcodeproj"
48
48
},
49
49
"android" : {
50
- "packageInstance" : " new FirestackPackage(getApplicationContext() )"
50
+ "packageInstance" : " new FirestackPackage()"
51
51
}
52
52
},
53
53
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments