React Native – How to create a native module?
iOS Open iOS project in XCode Create MyNativeModule.h Create MyNativeModule.m Android Open Android project in Android Studio Create MyNativeModule.java having native Android moduleJava Kotlin Create […]
iOS Open iOS project in XCode Create MyNativeModule.h Create MyNativeModule.m Android Open Android project in Android Studio Create MyNativeModule.java having native Android moduleJava Kotlin Create […]
Follow this instruction integration-with-existing-apps You may need to install “react”: “x.x.x” by yourself. It is recommened to create an example React Native AwesomeProject for reference. […]
1. Download font files Source+Sans+Pro 2. Place your font files into your project 3. Create react-native.config.js 4. Link font files react-native >= 0.69 react-native < […]
How to make image pressable? How to avoid keyboard pushing layout up on Android? Before After Hide Status Bar How to pass styled-component to component […]
Solution 1 Solution 2 Install dependencies Configure metro to transform svg file to jsx Create metro.config.js Usage Fill color for svg file (optional) Foe example, […]
How to store sensitive info? What is sensitive info? Token storage, secrets Certificates, tokens, passwords Can I save sensitive info in codes? Never store sensitive […]
Definition APPLICATION_NAME – this will be used by react-native to identify your application. APPLICATION_DISPLAY_NAME – display name in Android Home Screen. ANDROID_PACKAGE_NAME – A valid android package name. […]
How to reset navigation routes? What should be in data params when passing data? what-should-be-in-params What is the difference between push() and navigate()? How to […]
Setup package.json How to clean up everything and restart metro? How to restart metro? How to build bundle file for Android apk build? How to […]
Use react-native-dot-env Install package Edit .babelrc Create .env file Usage Use react-native-config Android How to use env file for strings.xml? iOS How to use env […]
Copyright © 2024 | WordPress Theme by MH Themes