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

Comments

About the Author

akamit

I am Akash Mittal, an overall computer scientist. If you want to guest post, need help in your projects, want to advertise, Feel free to contact me at [email protected]

View All Articles