Sample tutorial of Yahoo OAuth2 API in React Native. We will create an app and link to OAuth2 of Yahoo for retrieving user profiles.
Focusing on IOS.
Switch to tutorial branch to follow the instructions below. master branch is not for tutorial use.
Thanks to this article for great instructions on using Dropbox API. Many of the project are based on this article.
Different APIs have different limitations, so it would be harmful if you follow the guide above to try to create a Yahoo app. Follow this one if you want to save your time.
Goto Yahoo Developer Network (YDN) and create an app.
Add a config.js
file to the root of directory, which contains:
export default {
client_id: 'YOUR_CLIENT_ID',
client_secret: 'YOUR_CLIENT_SECRET'
}
Then run
npm install
react-native run-ios