callstack / callstack/react-native-paper
Disable material community icons example
- Ngôn ngữ chính
- TypeScript
- Star
- 14.5k
- Fork
- 2.2k
- Merge trung bình
- 5 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 12
Mô tả
### 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
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với tùy chọn được mô tả trong tài liệu và các ví dụ về babel.config.js trong issue, sau đó lần theo lỗi build web từ react-native-vector-icons/MaterialCommunityIcons qua react-native-paper. Công việc được xem là hoàn tất khi tài liệu bao gồm một ví dụ hoạt động giải thích hành vi của whitelist và blacklist, đồng thời giải quyết lỗi biên dịch web đã được báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- react-native, typescript
- Lĩnh vực
- documentation, frontend, web-dev
- Loại issue
- Tài liệu
- Độ khó
- 2/5
- Thời gian dự kiến
- Nửa ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100