File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
android/src/main/java/io/fullstack/firestack Expand file tree Collapse file tree 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 {
149149 protected List<ReactPackage > getPackages () {
150150 return Arrays . < ReactPackage > asList(
151151 new MainReactPackage (),
152- new FirestackPackage (getApplicationContext() )
152+ new FirestackPackage ()
153153 );
154154 }
155155 };
Original file line number Diff line number Diff line change 1515public class FirestackPackage implements ReactPackage {
1616 private Context mContext ;
1717
18- public FirestackPackage (Context ctx ) {
19- mContext = ctx ;
18+ public FirestackPackage () {
2019 }
2120 /**
2221 * @param reactContext react application context that can be used to create modules
@@ -26,7 +25,7 @@ public FirestackPackage(Context ctx) {
2625 public List <NativeModule > createNativeModules (ReactApplicationContext reactContext ) {
2726 List <NativeModule > modules = new ArrayList <>();
2827
29- modules .add (new FirestackModule (reactContext , mContext ));
28+ modules .add (new FirestackModule (reactContext , reactContext . getBaseContext () ));
3029 modules .add (new FirestackAuthModule (reactContext ));
3130 modules .add (new FirestackDatabaseModule (reactContext ));
3231 modules .add (new FirestackAnalyticsModule (reactContext ));
Original file line number Diff line number Diff line change 4747 "project" : " ios/Firestack.xcodeproj"
4848 },
4949 "android" : {
50- "packageInstance" : " new FirestackPackage(getApplicationContext() )"
50+ "packageInstance" : " new FirestackPackage()"
5151 }
5252 },
5353 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments