A note about OAuth 2.0:
I have a strong recommendation for the OAuth 2.0 protocol when working with mobile applications, especially because of the Token Refresh architecture, which helps me keep my user authenticated for a long time without compromising on my own security.
In addition, it is a protocol used by major social SDKs: Google, Facebook, Twitter and Slack. The best part: you can use ready-made solutions on the side of your server, for example, OAuth 2.0 server for PHP and OAuth 2.0 server for NodeJS .
Saving data is safe for React Native
Going back to the end of React Native, if you have your own set of credentials (JWT or OAuth 2.0), you should keep them safe. There is no direct way to do this using only the framework, but there is a large package called react-native-keychain that deals with it in both iOS and Android platforms.
Add it to your project.
# Using Yarn yarn add react-native-keychain
Then just use it where your user authenticates.
import * as Keychain from 'react-native-keychain';
source share