Using React Native in an Android Custom Keyboard
Disclaimer: I'm not very experienced with Android Java. If I've made a mistake, let me know. In this post, I'll show you how I got React Native working in a custom system keyboard in Android. React Native View Let's start with the Create a new file called xml/popup.xml . mReactRootView = new ReactRootView(this); mReactInstanceManager = ReactInstanceManager.builder() .setApplication(getApplication()) .setBundleAssetName("index.android.bundle") .setJSMainModulePath("index") .addPackage(new MainReactPackage()) .setUseDeveloperSupport(BuildConfig.DEBUG) .setInitialLifecycleState(LifecycleState.RESUMED) .build(); mReactRootView.startReactApplication(mReactInstanceManager, "MyReactNativeAp...
Comments
Post a Comment