To configure the activity for radar, so that permission requests can be used, users should call onActivityCreate with the activity and application context from MainActivity.java onCreate()
+ import io.radar.react.RNRadarModule;
public class MainActivity extends ReactActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// Set the theme to AppTheme BEFORE onCreate to support
// coloring the background, status bar, and navigation bar.
// This is required for expo-splash-screen.
setTheme(R.style.AppTheme);
super.onCreate(null);
+ RNRadarModule.onActivityCreate(this, getApplicationContext());
}
...
}
To configure the activity for radar, so that permission requests can be used, users should call onActivityCreate with the activity and application context from MainActivity.java onCreate()