File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -885,6 +885,24 @@ const AddTodo = () => {
885
885
}
886
886
` ` `
887
887
888
+ ## React Native
889
+
890
+ When using TanStack DB with React Native , you need to install and configure a UUID generation library since React Native doesn ' t include crypto.randomUUID() by default.
891
+
892
+ Install the ` react-native-random-uuid ` package :
893
+
894
+ ` ` ` bash
895
+ npm install react-native-random-uuid
896
+ ` ` `
897
+
898
+ Then import it at the entry point of your React Native app (e .g ., in your ` App.js ` or ` index.js ` ):
899
+
900
+ ` ` ` javascript
901
+ import 'react-native-random-uuid'
902
+ ` ` `
903
+
904
+ This polyfill provides the ` crypto.randomUUID() ` function that TanStack DB uses internally for generating unique identifiers.
905
+
888
906
## More info
889
907
890
908
If you have questions / need help using TanStack DB, let us know on the Discord or start a GitHub discussion:
You can’t perform that action at this time.
0 commit comments