import {SecureStore} from 'expo'; async function saveToken(val){ await SecureStore.setItemAsync('secure_token',val); } async function getToken(key){ const token = await SecureStore.getItemAsync(key); return token }