Demo app to test my package
npm install react-native-auth-service-client
import {
addEvent,
getEvent,
deleteEvent,
} from 'react-native-auth-service-client';
// ...
const fetchValue = () => {
// If android then you need to pass provider value other wise no need
getEvent('com.demo.user.provider')
.then((result) => setResult(result))
.catch((err: any) => setResult('No data found in keychain'));
};
const deleteValue = () => {
deleteEvent()
.then((result) => setResult('Key Chain data '))
.catch((err: any) => console.log(' save error==>', err));
};
const addValue = () => {
console.log(email, password);
addEvent(email, password)
.then(fetchValue)
.catch((err: any) => console.log(' save error==>', err));
};
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library