mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-28 15:45:23 +08:00
Referenced from 4b26429c49/src/components/MaterialCommunityIcon.tsx (L14)
https://callstack.github.io/react-native-paper/getting-started.html
> To get smaller bundle size by excluding modules you don't use, you can use our optional babel plugin. The plugin automatically rewrites the import statements so that only the modules you use are imported instead of the whole library. Add react-native-paper/babel to the plugins section in your babel.config.js for production environment. It should look like this:
> ```
> module.exports = {
> presets: ['module:metro-react-native-babel-preset'],
> env: {
> production: {
> plugins: ['react-native-paper/babel'],
> },
> },
> };
> ```
> If you created your project using Expo, it'll look something like this:
> ```
> module.exports = function(api) {
> api.cache(true);
> return {
> presets: ['babel-preset-expo'],
> env: {
> production: {
> plugins: ['react-native-paper/babel'],
> },
> },
> };
> };
> ```
Closes #8821
@react-navigation/material-bottom-tabs
React Navigation integration for bottom navigation component from react-native-paper.
Installation instructions and documentation can be found on the React Navigation website.