mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-06-11 08:13:29 +08:00
* refactor: Add DarkTheme, new colors in theme & update components to use it * chore: Remove 'console.log' statements * chore: Change dark theme property from string to boolean * feat: Add ability to toggle the theme from the drawer * fix: Wrap typography example screen with 'withTheme' * style: Update components to use correct dark theme colors * style: Update dark theme primary color and rn-navigation toolbar now gets the color from the theme * style: Add color prop to DrawerItem and update the example * style: Change the unchecked color in both Checkbox and RadioButton * chore: Add `yarn-error.log` to `.gitignore` * chore: Use lodash instead of lodash.merge * chore: Address PR comments
35 lines
873 B
JavaScript
35 lines
873 B
JavaScript
/* eslint-disable import/no-commonjs */
|
|
|
|
const path = require('path');
|
|
const escape = require('escape-string-regexp');
|
|
const blacklist = require('metro-bundler/src/blacklist');
|
|
|
|
module.exports = {
|
|
getProjectRoots() {
|
|
return [__dirname, path.resolve(__dirname, '..')];
|
|
},
|
|
getProvidesModuleNodeModules() {
|
|
return ['react-native', 'react', 'prop-types', 'color', 'lodash.merge'];
|
|
},
|
|
getBlacklistRE() {
|
|
return blacklist([
|
|
new RegExp(
|
|
`^${escape(
|
|
path.resolve(
|
|
__dirname,
|
|
'node_modules/react-native-svg/node_modules/color'
|
|
)
|
|
)}\\/.*$`
|
|
),
|
|
new RegExp(
|
|
`^${escape(path.resolve(__dirname, '..', 'node_modules'))}\\/.*$`
|
|
),
|
|
new RegExp(
|
|
`^${escape(
|
|
path.resolve(__dirname, '..', 'docs', 'node_modules')
|
|
)}\\/.*$`
|
|
),
|
|
]);
|
|
},
|
|
};
|