Hi Friends,
Today we are create native module for call restful api by using retrofit library in React Native
Step 1: Creating a new application
https://reactnative.dev/docs/getting... npm uninstall g reactnativecli @reactnativecommunity/cli
npx @reactnativecommunity/cli@latest init AwesomeProject
Step 2: Install Reactnavigation
yarn add
reactnativescreens
reactnativesafeareacontext
@reactnavigation/nativestack
reactnativegesturehandler
reactnativereanimated
@reactnavigation/native
@reactnativemaskedview/maskedview
@reactnativecommunity/hooks
@reactnativecommunity/checkbox
@reactnativecommunity/netinfo
apisauce
validator
https://reactnavigation.org/docs/gett...
Step 3: Connect real device adb reverse tcp:8081 tcp:8081
Step 4: Run you android project yarn start yarn android
Step 5: Past into build.gradle (module:app) file for retrofit library
implementation 'com.squareup.retrofit2:retrofit:2.8.1'
implementation 'com.squareup.retrofit2:convertergson:2.8.1'
implementation 'com.squareup.okhttp3:okhttp:4.9.2'
implementation 'com.squareup.okhttp3:logginginterceptor:4.9.2'