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

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