Files
react-native-paper/example/rn-cli.config.js
Ahmed Elhanafy 8adfa6751e feat: Dark Theme (#131)
* 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
2017-10-13 15:29:28 +02:00

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')
)}\\/.*$`
),
]);
},
};