Skip to content

Commit

Permalink
fix: context in Java class
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfeitosa committed Aug 4, 2023
1 parent c18a7c7 commit 68ca05d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
@ReactModule(name = RNWallpapersModule.NAME)
public class RNWallpapersModule extends ReactContextBaseJavaModule {
public static final String NAME = "RNWallpapers";
private final ReactApplicationContext reactContext;

private WallpaperManager wallpaperManager;
private Promise rctPromise;
Expand All @@ -50,6 +51,7 @@ public class RNWallpapersModule extends ReactContextBaseJavaModule {

public RNWallpapersModule(ReactApplicationContext reactContext) {
super(reactContext);
this.reactContext = reactContext;
mApplicationContext = getReactApplicationContext();
wallpaperManager = WallpaperManager.getInstance(mApplicationContext);
}
Expand Down

0 comments on commit 68ca05d

Please sign in to comment.