react-native-paper#DefaultTheme JavaScript Examples

The following examples show how to use react-native-paper#DefaultTheme. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: App.js    From Legacy with Mozilla Public License 2.0 6 votes vote down vote up
function ThemeWrapper () {
  const theme = useSelector(i=>i.themes[i.theme]);
  const paperTheme = {
    ...(theme.dark?DarkTheme:DefaultTheme),
    dark: theme.dark,
    colors: {
      ...(theme.dark?DarkTheme:DefaultTheme).colors,
      primary: theme.navigation.bg,
      accent: theme.navigation_selected.bg,
      text: theme.page_content.fg,
    }
  }
  return <PaperProvider theme={paperTheme}>
    <App />
  </PaperProvider>
}
Example #2
Source File: main.js    From Reminder-App with MIT License 6 votes vote down vote up
lighttheme = {
  ...DefaultTheme,
  colors: {
    ...DefaultTheme.colors,
    primary: "#6c757d",
    accent: "#6096ba",
    background: "#eeeeee",
    tab: "#ffffff",
    elemprim: "rgb(220,120,120)",
    elemsec: "lightblue",
    text: "#777777",
  },
}
Example #3
Source File: main.js    From Reminder-App with MIT License 6 votes vote down vote up
darktheme = {
  ...DefaultTheme,
  colors: {
    ...DefaultTheme.colors,
    primary: "#aaafaf",
    accent: "#6096ba",
    background: "#212529",
    tab: "#343a40",
    elemprim: "#777777",
    elemsec: "#777777",
    text: "#bbbbbb",
  },
}
Example #4
Source File: index.js    From puente-reactnative-collect with MIT License 6 votes vote down vote up
theme = {
  ...DefaultTheme,
  colors: {
    ...DefaultTheme.colors,
    primary: '#3d80fc',
    accent: '#FFE680',
    // primary: '#FFE680',
    // accent: '#3d80fc',
    background: '#F5F5F5',
    black: '#333'
  },
}
Example #5
Source File: App.js    From react-native-nfc-rewriter with MIT License 6 votes vote down vote up
CustomDefaultTheme = {
  ...DefaultTheme,
  colors: {
    ...DefaultTheme.colors,
    primary: '#3985cb',
  },
  fonts: {
    ...DefaultTheme.fonts,
    superLight: {...DefaultTheme.fonts.light},
  },
  userDefinedThemeProperty: '',
  animation: {
    ...DefaultTheme.animation,
    customProperty: 1,
  },
}
Example #6
Source File: Entrypoint.js    From MediBuddy with MIT License 6 votes vote down vote up
theme = {
  ...DefaultTheme,
  roundness: 2,
  colors: {
    ...DefaultTheme.colors,
    primary: '#2c3e50',
    accent: '#00aea2',
    background: '#f0f6f9',
    text: '#34495e',
  },
}
Example #7
Source File: App.js    From mern-stack with MIT License 5 votes vote down vote up
theme = {
  ...DefaultTheme,
  colors: {
    ...DefaultTheme.colors,
    primary: '#1d91b4',
    accent: Colors.pink500,
  },
}