Skip to content

Commit bf0c254

Browse files
authored
docs: consistent with storeData example (#396)
1 parent 4d89db5 commit bf0c254

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/docs/Usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const storeData = async (value) => {
4949
#### Reading string value
5050
```jsx
5151

52-
getData = async () => {
52+
const getData = async () => {
5353
try {
5454
const value = await AsyncStorage.getItem('@storage_Key')
5555
if(value !== null) {
@@ -65,7 +65,7 @@ getData = async () => {
6565

6666
```jsx
6767

68-
getData = async () => {
68+
const getData = async () => {
6969
try {
7070
const jsonValue = await AsyncStorage.getItem('@storage_Key')
7171
return jsonValue != null ? JSON.parse(jsonValue) : null;

0 commit comments

Comments
 (0)