Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-rapid-api

Cactice8ISCdeprecated1.0.3

This package is not usable due to updates in Rapid API

Use Rapid API with React Native

React Native, RapidAPI, Rapid API

readme

react-native-rapid-api

This is an npm package for using Rapid API with react native.

Get Your RapidAPI Credentials

  1. Go to your RapidAPI Dashboard (https://dashboard.rapidapi.com)
  2. Go to My Apps => (Your application) => Security

How to Use

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', {})