Skip to content

Instantly share code, notes, and snippets.

@adhithiravi
Last active November 3, 2018 16:33
Show Gist options
  • Save adhithiravi/911e237b3298ed46aa372241e7979520 to your computer and use it in GitHub Desktop.
Save adhithiravi/911e237b3298ed46aa372241e7979520 to your computer and use it in GitHub Desktop.
// using react-native-device-info to get server information
const server = DeviceInfo.getBundleId()
Keychain.setInternetCredentials(server, email, password).then(() => {
console.log('Saved internet credentials')
}).catch(error => {
console.log('Could not save credentials')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment