In React Native background color can be applied using background-color
css property. The only difference is that we need to use camel case as backgroundColor
. Check out the code –
import { StyleSheet, } from 'react-native'; const styles = StyleSheet.create({ container: { backgroundColor: 'yellow', } });