UNPKG
create-sellflow
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
Pre-built cross-platform Shopify app template
github.com/sellflow/sellflow
sellflow/sellflow
create-sellflow
/
templates
/
basic
/
lib
/
storage.ts
10 lines
(8 loc)
•
243 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
Platform
}
from
"react-native"
;
import
{
MMKV
}
from
"react-native-mmkv"
;
export
const
storage =
new
MMKV
({
id
:
"user"
, ...(
Platform
.
OS
!==
"web"
&& {
encryptionKey
: process.
env
.
EXPO_PUBLIC_ENCRYPTION_KEY
||
"key"
, }), });