React Native borrows many ideas of styling for the Web. For example, in CSS, you write the following:
React Native
.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.
writing CSS in JavaScript
isolating styles
global namespace