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 @@ -144,7 +144,7 @@ public class MainApplication extends Application implements ReactApplication {
144144 protected List<ReactPackage > getPackages () {
145145 return Arrays . < ReactPackage > asList(
146146 new MainReactPackage (),
147- new FirestackPackage (getApplicationContext() )
147+ new FirestackPackage ()
148148 );
149149 }
150150 };
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