mirror of
https://github.com/Stef-00012/Zipline-Android-App.git
synced 2025-05-11 10:25:59 +02:00
first commit :D
This commit is contained in:
parent
40b7eabefe
commit
ed5c91435d
41 changed files with 724 additions and 907 deletions
15
functions/database.ts
Normal file
15
functions/database.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import * as SecureStore from "expo-secure-store";
|
||||
|
||||
export function set(key: string, value: string) {
|
||||
SecureStore.setItem(key, value);
|
||||
}
|
||||
|
||||
export function get(key: string) {
|
||||
const result = SecureStore.getItem(key);
|
||||
|
||||
if (result) {
|
||||
return result;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue