fix: don't use paper's babel plugin

This commit is contained in:
Satyajit Sahoo
2018-11-06 16:34:56 +01:00
parent 52009a9372
commit c34863ac9e
3 changed files with 818 additions and 574 deletions

View File

@@ -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