React Native background color

Total
0
Shares

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',
             }
});

    Tweet this to help others

Live Demo

Open Live Demo