ammarahm-ed / react-native-jsi-template

Template library and blog that explain how JSI modules are built from scratch in React Native
https://blog.notesnook.com/getting-started-react-native-jsi/
MIT License
163 stars 24 forks source link

If my project contains more than one JSI libraries, Which JSIModulePackage should I use in MainApplication.Java #20

Open djintalkalan opened 1 year ago

djintalkalan commented 1 year ago

@ammarahm-ed If I have more than one library, which are created using this guide, then we have different JSIModulePackage for each library. Example FirstLibJsiModulePackage, SecondLibJsiModulePackage, ThirdLibJsiModulePackage etc.

So my question is, Which JSIModulePackage should I use in MainApplication.Java

  @Override
    protected JSIModulePackage getJSIModulePackage() {
      return new SimpleJsiModulePackage(); //  <--------- Here
    }