Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dc2155a

Browse files
authoredAug 13, 2023
fix: tell users about how autolinking works (#1000)
1 parent 9170c40 commit dc2155a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎src/AsyncStorage.native.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,17 @@ if (!RCTAsyncStorage) {
2424
2525
To fix this issue try these steps:
2626
27-
Rebuild and restart the app.
27+
Uninstall, rebuild and restart the app.
2828
2929
• Run the packager with \`--reset-cache\` flag.
3030
31-
• If you are using CocoaPods on iOS, run \`pod install\` in the \`ios\` directory and then rebuild and re-run the app.
31+
• If you are using CocoaPods on iOS, run \`pod install\` in the \`ios\` directory, then rebuild and re-run the app.
3232
33-
If this happens while testing with Jest, check out docs how to integrate AsyncStorage with it: https://react-native-async-storage.github.io/async-storage/docs/advanced/jest
33+
Make sure your project's \`package.json\` depends on \`@react-native-async-storage/async-storage\`, even if you only depend on it indirectly through other dependencies. CLI only autolinks native modules found in your \`package.json\`.
3434
35-
If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-async-storage/async-storage/issues
35+
• If this happens while testing with Jest, check out how to integrate AsyncStorage here: https://react-native-async-storage.github.io/async-storage/docs/advanced/jest
36+
37+
If none of these fix the issue, please open an issue on the GitHub repository: https://github.com/react-native-async-storage/async-storage/issues
3638
`);
3739
}
3840

0 commit comments

Comments
 (0)
Please sign in to comment.