@@ -5,10 +5,36 @@ highlighted features.
55
66---
77
8+ # v6.5
9+
10+ This release includes the new persister-react-native-mmkv module, which allows
11+ you to persist data in a React Native MMKV store via the
12+ [ react-native-mmkv] ( https://github.com/mrousavy/react-native-mmkv ) library.
13+
14+ Usage should be as simple as this:
15+
16+ ``` js yolo
17+ import {MMKV } from ' react-native-mmkv' ;
18+ import {createStore } from ' tinybase' ;
19+ import {createReactNativeMmkvPersister } from ' tinybase/persisters/persister-react-native-mmkv' ;
20+
21+ const storage = new MMKV ();
22+ const store = createStore ().setTables ({pets: {fido: {species: ' dog' }}});
23+ const persister = createReactNativeMmkvPersister (store, storage);
24+
25+ await persister .save ();
26+ // Store will be saved to the MMKV store.
27+ ```
28+
29+ A huge shout out to [ Jérémy Barbet] ( https://github.com/JeremyBarbet ) for this
30+ new persister!
31+
32+ ---
33+
834# v6.4
935
10- This release includes the new persister-react-native-sqlite module, which
11- allows you to persist data in a React Native SQLite database via the
36+ This release includes the new persister-react-native-sqlite module, which allows
37+ you to persist data in a React Native SQLite database via the
1238[ react-native-sqlite-storage] ( https://github.com/andpor/react-native-sqlite-storage )
1339library.
1440
@@ -28,7 +54,8 @@ await persister.save();
2854// Store will be saved to the database.
2955```
3056
31- Please let us know how you get on with this new Persister, and if you have any feedback or suggestions.
57+ Please let us know how you get on with this new Persister, and if you have any
58+ feedback or suggestions.
3259
3360---
3461
0 commit comments