How to use the react-native-paper.Colors.red500 function in react-native-paper

To help you get started, we’ve selected a few react-native-paper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github HenryQuan / WoWs-Info-Re / wowsinfo / src / ui / page / Home / Tabs / Wiki.tsx View on Github external
            <button> c?.updateTheme(new UserTheme(true, Colors.red500))}&gt;Hello</button>
          )}
github HenryQuan / WoWs-Info-Re / wowsinfo / src / ui / page / Welcome / Agreement.tsx View on Github external
const { rootView, bottomView, ContainedButton } = styles;

    const setup: SetupProps = {
      isSetup: true
    };

    return (
      
        
          
        
        
          <button style="{ContainedButton}" color="{Colors.blue500}" mode="contained"> Actions.replace('Settings', setup)}&gt;
            {langs.agreement_agree}
          </button>
          <button style="{ContainedButton}" color="{Colors.red500}" mode="contained">
            {langs.agreement_disagree}
          </button>
        
        
          <dialog>
            WoWs Info
            
              {langs.agreement_you_have_to_agree}
            
            
              <button> Actions.replace('Welcome')}&gt;{langs.agreement_retry}</button>
            
          </dialog>
        
      
    )