Skip to main content
Question

Paywall Darkmode - React Native Purches UI

  • 10 February 2024
  • 3 replies
  • 194 views

Forum|alt.badge.img+3

Hello,

 

I searched through the docs and can’t find if there’s a setting or prop to set a paywall to dark mode or light mode? Like how the web editor allows?

 

(Or to overwrite the phone settings?)

3 replies

Forum|alt.badge.img+2

I'm also interested in manually changing the dark/light setting based in the user choice in the app and not the one of the OS. How to do that ?


Forum|alt.badge.img

I am also interested in this topic.


Use the following to change the applications theme to light or dark mode:


import { Appearance} from 'react-native';

 Appearance.setColorScheme(isDarkMode ? 'dark' : 'light');


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings