callstack / callstack/react-native-paper

Disable material community icons example

オープン
#4,403 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
TypeScript
スター
14.5k
フォーク
2.2k
平均マージ
5日 23時間
マージ済み PR(30日)
12

説明

### Ask your Question
I know that docs point to this option, but it's not clear how it's used. Could you please provide a sample code?
i tryed this in babel.config.js
```
plugins: ['optional-require']
plugins: [
['optional-require', {blacklist: ['react-native-vector-icons']}]
]
plugins: [
['optional-require', {whitelist: ['react-native-vector-icons']}]
]
```

I can't see any difference, when i compile for Android i don't ever need to put that, and when i compile for web i get this

```
Module not found: Error: Can't resolve 'react-native-vector-icons/MaterialCommunityIcons' in 'C:\Users\javie\projects\alten\projects\CCMA\cat3Info\node_modules\react-native-paper\lib\module\components'
@ ./node_modules/react-native-paper/lib/module/core/PaperProvider.js 6:0-72 73:12-33
@ ./node_modules/react-native-paper/lib/module/index.js 4:0-59 4:0-59 5:0-64 5:0-64
@ ./src/App.tsx 1:503-532
@ ./index.web.js 1:240-260

```

Thanks

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。