kevinejohn / react-native-keyevent

Capture external keyboard keys or remote control button events
MIT License
208 stars 95 forks source link

MainApplication.java is different. #56

Open diogosperandio opened 3 years ago

diogosperandio commented 3 years ago

Hi,

Could you help me, the file MainApplication.java is a little different from your doc. How could I modify it? Thank you

private final ReactNativeHost mReactNativeHost =
      new ReactNativeHost(this) {
        @Override
        public boolean getUseDeveloperSupport() {
          return BuildConfig.DEBUG;
        }

        @Override
        protected List<ReactPackage> getPackages() {
          @SuppressWarnings("UnnecessaryLocalVariable")
          List<ReactPackage> packages = new PackageList(this).getPackages();
          // Packages that cannot be autolinked yet can be added manually here, for example:
          // packages.add(new MyReactNativePackage());
          return packages;
        }

        @Override
        protected String getJSMainModuleName() {
          return "index";
        }
AayushRajput98 commented 3 years ago

You dont need to modify it