React Native background color


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 {
} from 'react-native';

const styles = StyleSheet.create({
  container: {
               backgroundColor: 'yellow',

    Tweet this to help others

Live Demo

Sign Up for Our Newsletters

Get only the best articles delivered to your mail

You May Also Like

How to check react version?

Table of Contents Hide Check react version through command lineCheck version programmaticallyLive DemoRelated Posts: It is important to know how to check react version in order to keep the libraries…
View Post