mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-29 21:05:29 +08:00
fix: don't use paper's babel plugin
This commit is contained in:
@@ -19,7 +19,7 @@ react-native link react-native-vector-icons
|
||||
|
||||
If you don't want to install vector icons, you can use [babel-plugin-optional-require](https://github.com/satya164/babel-plugin-optional-require) to opt-out.
|
||||
|
||||
If you use CRNA or Expo, you don't need to install vector icons. But you will need to make sure that your `.babelrc` includes `babel-preset-expo`:
|
||||
If you use Expo, you don't need to install vector icons. But you will need to make sure that your `.babelrc` includes `babel-preset-expo`:
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -27,6 +27,8 @@ If you use CRNA or Expo, you don't need to install vector icons. But you will ne
|
||||
}
|
||||
```
|
||||
|
||||
If you don't use React Native Paper app, you should also add `react-native-paper/babel` to your `.babelrc` to avoid importing the whole library. See the [Getting Started guide](https://callstack.github.io/react-native-paper/getting-started.html) for more information.
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user