docs: update native module instructions#4978
Conversation
|
Hi @mafo5! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
✅ Deploy Preview for react-native ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Remove deprecated code
Fix return type for getItem method to handle null values correctly.
to make android and iOS behave similar
I recently updated my ReactNative Project to 0.83
In this process I stumbled over the warning that the
ReactPackage.createNativeModulesis replaced by theBaseReactPackage.getModulefunction.Unfortunately I'm using custom events in my modules and therefor all my modules broke after the migration.
This let me to go step by step through the documentation of the native module sections.
Here I noticed that the code is not alined to the react native community templates and a lot of deprecated code is used. So this is my attempt to fix this documentation to use the current state of code.