Created
November 5, 2018 16:20
-
-
Save Kudo/f445e26cc4697d47662257aed98ff8b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern "C" HelloCxxModule* createHelloCxxModule() { | |
return new HelloCxxModule(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final class HelloCxxPackage implements ReactPackage { | |
@Override | |
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) { | |
return Arrays.<NativeModule>asList( | |
// I have librnpackage-hellocxx.so the exported createHelloCxxModule() above. | |
CxxModuleWrapper.makeDso("rnpackage-hellocxx", "createHelloCxxModule") | |
); | |
} | |
@Override | |
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) { | |
return Collections.emptyList(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment