1- # ` @reason -react-native/async-storage `
1+ # ` @rescript -react-native/async-storage `
22
3- [ ![ Build Status] ( https://github.com/reason -react-native/async-storage/workflows/Build/badge.svg )] ( https://github.com/reason -react-native/async-storage/actions )
4- [ ![ Version] ( https://img.shields.io/npm/v/@reason -react-native/async-storage.svg )] ( https://www.npmjs.com/@reason -react-native/async-storage )
5- [ ![ Chat ] ( https://img.shields.io/discord/235176658175262720.svg?logo=discord&colorb=blue )] ( https://reason-react-native.github.io/discord / )
3+ [ ![ Build Status] ( https://github.com/rescript -react-native/async-storage/workflows/Build/badge.svg )] ( https://github.com/rescript -react-native/async-storage/actions )
4+ [ ![ Version] ( https://img.shields.io/npm/v/@rescript -react-native/async-storage.svg )] ( https://www.npmjs.com/@rescript -react-native/async-storage )
5+ [ ![ ReScript Forum ] ( https://img.shields.io/discourse/posts?color=e6484f&label=ReScript%20Forum&server=https%3A%2F%2Fforum.rescript-lang.org )] ( https://forum.rescript-lang.org / )
66
7- [ ReScript] ( https://rescript-lang.org ) / [ Reason ] ( https://reasonml.github.io ) bindings for
7+ [ ReScript] ( https://rescript-lang.org ) bindings for
88[ ` @react-native-async-storage/async-storage ` ] ( https://github.com/react-native-async-storage/async-storage ) .
99
1010Exposed as ` ReactNativeAsyncStorage ` module.
1111
12- ` @reason -react-native/async-storage ` X.y.\* means it's compatible with
12+ ` @rescript -react-native/async-storage ` X.y.\* means it's compatible with
1313` @react-native-async-storage/async-storage ` X.y.\*
1414
1515## Installation
@@ -20,22 +20,22 @@ is properly installed & configured by following their installation instructions,
2020you can install the bindings:
2121
2222``` console
23- npm install @reason -react-native/async-storage
23+ npm install @rescript -react-native/async-storage
2424# or
25- yarn add @reason -react-native/async-storage
25+ yarn add @rescript -react-native/async-storage
2626```
2727
28- ` @reason -react-native/async-storage ` should be added to ` bs-dependencies ` in
28+ ` @rescript -react-native/async-storage ` should be added to ` bs-dependencies ` in
2929your ` bsconfig.json ` :
3030
3131``` diff
3232{
3333 //...
3434 "bs-dependencies": [
35- "reason- react",
36- "reason -react-native",
35+ "@rescript/ react",
36+ "rescript -react-native",
3737 // ...
38- + "@reason -react-native/async-storage"
38+ + "@rescript -react-native/async-storage"
3939 ],
4040 //...
4141}
@@ -47,7 +47,7 @@ your `bsconfig.json`:
4747
4848#### ` ReactNativeAsyncStorage.asyncStorageState `
4949
50- ``` reason
50+ ``` rescript
5151type asyncStorageState = {
5252 getItem: unit => Js.Promise.t(Js.Null.t(string)),
5353 setItem: string => Js.Promise.t(unit),
@@ -64,73 +64,73 @@ type asyncStorageState = {
6464
6565#### ` ReactNativeAsyncStorage.getItem `
6666
67- ``` reason
67+ ``` rescript
6868string => Js.Promise.t(Js.Null.t(string))
6969```
7070
7171#### ` ReactNativeAsyncStorage.setItem `
7272
73- ``` reason
73+ ``` rescript
7474(string, string) => Js.Promise.t(unit)
7575```
7676
7777#### ` ReactNativeAsyncStorage.removeItem `
7878
79- ``` reason
79+ ``` rescript
8080string => Js.Promise.t(unit)
8181```
8282
8383#### ` ReactNativeAsyncStorage.mergeItem `
8484
85- ``` reason
85+ ``` rescript
8686(string, string) => Js.Promise.t(unit)
8787```
8888
8989#### ` ReactNativeAsyncStorage.clear `
9090
91- ``` reason
91+ ``` rescript
9292unit => Js.Promise.t(unit)
9393```
9494
9595#### ` ReactNativeAsyncStorage.getAllKeys `
9696
97- ``` reason
97+ ``` rescript
9898unit => Js.Promise.t(Js.Null.t(array(string)))
9999```
100100
101101#### ` ReactNativeAsyncStorage.multiGet `
102102
103- ``` reason
103+ ``` rescript
104104array(string) => Js.Promise.t(array((string, Js.Null.t(string))))
105105```
106106
107107#### ` ReactNativeAsyncStorage.multiSet `
108108
109- ``` reason
109+ ``` rescript
110110array((string, string)) => Js.Promise.t(unit)
111111```
112112
113113#### ` ReactNativeAsyncStorage.multiMerge `
114114
115- ``` reason
115+ ``` rescript
116116array((string, string)) => Js.Promise.t(unit)
117117```
118118
119119#### ` ReactNativeAsyncStorage.multiRemove `
120120
121- ``` reason
121+ ``` rescript
122122array(string) => Js.Promise.t(unit)
123123```
124124
125125#### ` ReactNativeAsyncStorage.flushGetRequests `
126126
127- ``` reason
127+ ``` rescript
128128unit => unit
129129```
130130
131131#### ` ReactNativeAsyncStorage.useAsyncStorage `
132132
133- ``` reason
133+ ``` rescript
134134string => asyncStorageState
135135```
136136
@@ -146,11 +146,11 @@ releases.
146146## Contribute
147147
148148Read the
149- [ contribution guidelines] ( https://github.com/reason -react-native/.github/blob/master/CONTRIBUTING.md )
149+ [ contribution guidelines] ( https://github.com/rescript -react-native/.github/blob/master/CONTRIBUTING.md )
150150before contributing.
151151
152152## Code of Conduct
153153
154154We want this community to be friendly and respectful to each other. Please read
155- [ our full code of conduct] ( https://github.com/reason -react-native/.github/blob/master/CODE_OF_CONDUCT.md )
155+ [ our full code of conduct] ( https://github.com/rescript -react-native/.github/blob/master/CODE_OF_CONDUCT.md )
156156so that you can understand what actions will and will not be tolerated.
0 commit comments