You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
Connor Larkin edited this page May 1, 2017
·
1 revision
Styles (and colors)
When to use global styles
So the global styles for the RNApp are in app/config/styles/ and in there we have our frequently used colors that if we change a color for something it will change throughout the app without doing anything but changing the global styles variable.
It's the same deal as importing and using images so look at that
DEVICE_WIDTH and DEVICE_HEIGHT
import them with styles from app/config/styles/... Don't create a new instance when there is a global one so just import
_import { colors,DEVICE_WIDTH,DEVICE_HEIGHT } from '../../config/styles'; _