This is an npm package for using Rapid API with react native.
- Go to your RapidAPI Dashboard (https://dashboard.rapidapi.com)
- Go to My Apps => (Your application) => Security
Run the following command to install the package:
npm install react-native-rapid-api --save
In your code, add the following code to import the RapidAPI SDK:
import RapidAPI from 'react-native-rapid-api'
const rapid = new RapidAPI('PROJECT_NAME', 'API_KEY')
(Example) Call the NASA API and check out the picture of the day:
rapid.call('NasaAPI', 'getPictureOfTheDay', {})