Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Commit

Permalink
fix: don't use paper's babel plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Nov 6, 2018
1 parent 80f2e90 commit a17cf68
Show file tree
Hide file tree
Showing 3 changed files with 821 additions and 577 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ 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
{
"presets": ["expo"]
}
```

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
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"flow": "flow",
"lint": "eslint .",
"precommit": "yarn lint && yarn flow && yarn test",
"build": "babel --no-babelrc --plugins=syntax-jsx,syntax-class-properties,syntax-object-rest-spread,transform-flow-strip-types,react-native-paper/babel src --out-dir dist --ignore '**/__tests__/**'",
"build": "babel --no-babelrc --plugins=syntax-jsx,syntax-class-properties,syntax-object-rest-spread,transform-flow-strip-types src --out-dir dist --ignore '**/__tests__/**'",
"prepare": "yarn build"
},
"keywords": [
Expand Down Expand Up @@ -62,14 +62,14 @@
"react": "16.3.1",
"react-dom": "16.3.1",
"react-native": "~0.55.4",
"react-native-paper": "^2.0.1",
"react-native-paper": "^2.2.2",
"react-navigation": "^2.1.0",
"react-test-renderer": "16.2.0"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-paper": "^2.0.1",
"react-native-paper": "^2.2.2",
"react-navigation": ">=2.0 || ^2.0.0-beta"
},
"jest": {
Expand Down
Loading

0 comments on commit a17cf68

Please sign in to comment.