react-native-disable-battery-optimizations-android icon indicating copy to clipboard operation
react-native-disable-battery-optimizations-android copied to clipboard

Configuration problems

Open Brentlok opened this issue 4 years ago • 0 comments

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  2. Add import com.reactlibrary.RNDisableBatteryOptimizationsandroidPackage; to the imports at the top of the file
  3. Add new RNDisableBatteryOptimizationsPackage() to the list returned by the getPackages() method

In MainAcitivity.java I dont have any getPackages() method, where am I supposed to put "RNDisableBatteryOptimizationsPackage()"

Brentlok avatar Oct 28 '21 07:10 Brentlok