Installation
Open a Terminal in your project's folder and run:
npm install @react-native-material/core
or
yarn add @react-native-material/core
Please note that react
, react-native
and react-native-svg
are peer dependencies.
Installing dependencies into an Expo managed project
In your project directory, run:
expo install react-native-svg
This will install a version of react-native-svg that is compatible.
Now you can continue to Hello World to start writing some code.
Installing dependencies into a bare React Native project
In your project directory, run:
npm install react-native-svg
or
yarn add react-native-svg
Note: You might get warnings related to peer dependencies after installation. They are usually caused by incorrect version ranges specified in some packages. You can safely ignore most warnings as long as your app builds.
From React Native 0.60 and higher, linking is automatic. So you don't need to run react-native link
.
If you're on a Mac and developing for iOS, you need to install the pods (via Cocoapods) to complete the linking.
npx pod-install ios
Continue to Hello World to start writing some code.