


These methods can be accessed from NativeModules of the react-native package.Īndroid/app/src/main/java/com/notetaker/device/DeviceModule. In order to expose a method from a native Java module to Javascript, just write a method and add annotation on top of it. On iOS, use the built-in QR code scanner of the default iOS Camera app. On Android, use the Expo Go app to scan the QR code from your terminal to open your project. The getName method basically contains the name by which the module will be exported to the JS. Running your React Native application Install the Expo Go app on your iOS or Android phone and connect to the same wireless network as your computer. The custom native module class should extend ReactContextBaseJavaModule.Īfter this, we will have to implement the getName() method. SVG Icons using react-native-vector-icons 🐾Ĭreate a Java class file android/app/src/main/java/com/notetaker/device/DeviceModule.java This is our main custom native module file. Speed up development with some and ES7 features 🤘 When you create a React Native project, there is an android folder created by default.

Creating basic components and writing platform-specific codeĮSLint: The guardian of code conventions ⚔️
