Skip to content

Commit 3b26f28

Browse files
committed
chore: mention breaking change in readme
1 parent 311d3de commit 3b26f28

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ This library aims to provide a fast & reliable solution for you data storage nee
3535

3636
> Learn how to build your own module with JSI on my [blog](https://blog.notesnook.com/getting-started-react-native-jsi/)
3737
38+
## 0.9.0 Breaking change
39+
40+
Works only with react native 0.71.0 and above. If you are on older version of react native, keep using 0.8.x.
41+
3842
## Features
3943

4044
### **Written in C++ using JSI**
@@ -126,10 +130,7 @@ MMKV supports concurrent read-read and read-write access between processes. This
126130
You can create many database instances. This helps greatly if you have separate logics/modules in the same app that use data differently, It also helps in better performance since each database instance is small instead of a single bulky database which makes things slower as it grows.
127131

128132
```js
129-
const userStorage = new MMKVLoader()
130-
.withEncryption()
131-
.withInstanceID('userdata')
132-
.initialize();
133+
const userStorage = new MMKVLoader().withEncryption().withInstanceID('userdata').initialize();
133134

134135
const settingsStorage = new MMKVLoader().withInstanceID('settings').initialize();
135136
```

0 commit comments

Comments
 (0)