sharingan-rn-modal-dropdown icon indicating copy to clipboard operation
sharingan-rn-modal-dropdown copied to clipboard

Disable dark mode in dropdown

Open Souravpakhira opened this issue 3 years ago • 4 comments

Here dropdown is selecting from the system color dark or light but I want the default light mode irrespective of the system theme

Souravpakhira avatar Sep 17 '21 07:09 Souravpakhira

Use the react-native-paper theme option to overwrite the dark mode theme, that should help.

selvamk-js avatar Sep 21 '21 14:09 selvamk-js

is there an example to implement?

helmyandria avatar Oct 25 '21 06:10 helmyandria

If you are using react-native-paper check out their docs to overwrite the theme, you have to pass the same light theme configurations to the dark theme that will overwrite the dark theme or explore this package props there is a theme prop that will overwrite the theme

selvamk-js avatar Oct 25 '21 08:10 selvamk-js

example for forcing light mode:

  import { DefaultTheme } from 'react-native-paper';
  import { Dropdown } from 'sharingan-rn-modal-dropdown';
  
  <Dropdown
      paperTheme={DefaultTheme}
      // ...other props
  />

ArturGr avatar Feb 18 '22 16:02 ArturGr