React Native Zustand Demo - Add item to list.

Опубликовано: 13 Май 2026
на канале: Fred Abijay
149
1

Very minimal React Native Demo using Zustand state management.

Preparation:
1. npx react-native init ListDemo
2. cd ListDemo
3. Edit android\gradle\wrapper\gradle-wrapper.properties file, change gradle-6.2-all.zip to gradle-6.4-all.zip
4. git init . (Optional. Only if you like using Git.)

Zustand:
5. yarn add zustand
6. Create a folder called stores.
7. In the stores directory create a file called ListStore.js. Please see video for file contents.

React-Native:
8. Create two files: Item.js, and ItemList.js. Please see video for the contents of each file.
9. Edit App.js. Please see video for file contents.

Execute:
10. react-native run-android