From 9c76b0772ba722a9a0e9f543b7b8cfca8a6232cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Irek=20R=C3=B3g?= Date: Sun, 28 Jun 2020 08:13:24 +0200 Subject: [PATCH] consistent with storeData example --- website/docs/Usage.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/Usage.md b/website/docs/Usage.md index 5d33b73f..d359b6b5 100644 --- a/website/docs/Usage.md +++ b/website/docs/Usage.md @@ -49,7 +49,7 @@ const storeData = async (value) => { #### Reading string value ```jsx -getData = async () => { +const getData = async () => { try { const value = await AsyncStorage.getItem('@storage_Key') if(value !== null) { @@ -65,7 +65,7 @@ getData = async () => { ```jsx -getData = async () => { +const getData = async () => { try { const jsonValue = await AsyncStorage.getItem('@storage_Key') return jsonValue != null ? JSON.parse(jsonValue) : null;