Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 232bdeb

Browse files
Update README.md
1 parent 05533f8 commit 232bdeb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎README.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,21 @@ render: {
5050

5151
## Usage Examples
5252

53-
Fetch apiToken from `AsyncStorage` before loading the rest of the app
53+
-Fetch `username` from `AsyncStorage` before loading the rest of the app
5454

5555
```jsx
5656
<AsyncStorage.GetItem
57-
itemKey='apiToken'
57+
itemKey='username'
5858
render={({ loading, value, error }) => {
5959

6060
if (loading) return <AppLoading />
61-
61+
6262
return (
63-
<Provider store={store}>
64-
<AppWithNavigationState />
65-
</Provider>
63+
<View style={styles.container}>
64+
<Text>Welcome to my app, ${value}</Text>
65+
</View>
6666
)
67-
67+
6868
}}
6969
/>
7070
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /