-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Steps to produce the problem:
- git cloned repository
- 'yarn' on root lib dir to install needed packages for module
- run node rename.js
- cd into example and run command 'yarn' to install any packages needed for example app
- run yarn start to metro bundler
- compile with 'react-native run-android'
These steps will run the module fine and will show module on console log but after doing the steps below it will not show as null in console log:
7) Modified in Android 'getName' function to return "CustomModule" instead of "RNModuleTemplateModule"
8) Change in index.js of module
From:export default NativeModules.RNModuleTemplateModule
To:export default NativeModules.CustomModule
9) Clean project with ./gradlew clean
10) Recompile again with "react-native run-android"
Result: module returning as null in console log
I even tried to change the module class name and file in Android but same problem occurs.
Metadata
Metadata
Assignees
Labels
No labels