How to change theme in native base? -
i'm new in react native , tried use native base, component i'm in stuck change theme in native base while know how use style not of them can applied in native base (such change color in active footer tab). can customize in style prefer change in theme in doc. can't overcome this.
i've tried use custom themes , applied in component far didn't change.
my workspace: -react-native 2.0.1 -native-base 2.3.1
thanks
you can use code , read here more information:
import react, { component } 'react'; import { container, content, text, styleprovider } 'native-base'; import gettheme './native-base-theme/components'; import material './native-base-theme/variables/material'; export default class themeexample extends component { render() { return ( <styleprovider style={gettheme(material)}> <container> <content> <text> have changed text color. </text> </content> </container> </styleprovider> ); } }
Comments
Post a Comment