in React JS by
Q:
Styling in React Native Example

1 Answer

0 votes
by
Styling in React Native

React Native borrows many ideas of styling for the Web. For example, in CSS, you write the following:

.container { 
   background-color: #222222; 
}

However, in React Native, you would write the following in JavaScript:

const styles = StyleSheet.create({ 
   container: { 
      backgroundColor: '#222222' 
   } 
}); 

By writing CSS in JavaScript, you are isolating stylesfrom global namespace.

Click here to read more about React JS
Click here to read more about Insurance

Related questions

0 votes
asked May 20, 2020 in React JS by GeorgeBell
0 votes
0 votes
0 votes
asked Mar 1, 2020 in React JS by RShastri
0 votes
asked Mar 1, 2020 in React JS by RShastri
0 votes
0 votes
0 votes
asked Oct 3, 2020 in React JS by DavidAnderson
0 votes
asked May 21, 2020 in React JS by GeorgeBell
0 votes
asked May 20, 2020 in React JS by GeorgeBell
0 votes
...