First of all create a new project using the following command: npx react-native init ReactReduxToolkit After the project is created, go inside the project by changing the directory using cd command: cd ReactReduxToolkit Once you are inside the project folder you need to install Redux Toolkit npm install @reduxjs/toolkit
Category: React Native
React Native articles how to and fix errors
TypeError: cli.init is not a function
If you get this error when trying to create a react native project it means that the react cli is not installed globaly. You need to unistall react-native-cli using the following command: npm uninstall -g react-native-cli After that reinstall react-native-cli and react-native globaly using the commands: npm install -g react-native-cli npm install -g react-native When… Continue reading TypeError: cli.init is not a function