React Native

React Native brings React's declarative UI framework to iOS and Android. With React Native, you use native UI controls and have full access to the native platform.

React Native is developed and supported by many companies and individual core contributors. Find out more in our ecosystem overview.

Usage Example

jsx
import {View, Text} from 'react-native';
import {SafeAreaView, SafeAreaProvider} from 'react-native-safe-area-context';

const ViewBoxesWithColorAndText = () => {
  return (
    <SafeAreaProvider>
      <SafeAreaView style={{flexDirection: 'row'}}>
        <View style={{height: 100, backgroundColor: 'blue', flex: 0.2}} />
        <View style={{height: 100, backgroundColor: 'red', flex: 0.4}} />
        <Text>Hello World!</Text>
      </SafeAreaView>
    </SafeAreaProvider>
  );
};

export default ViewBoxesWithColorAndText;

https://snack.expo.dev/?description=Example%20usage&deviceFrame=false&hideQueryParams=true&name=View%20Example&platform=ios

Projects in this ecosystem

These open source projects list this one as their ecosystem, giving a clearer view of where it is used.

SHARE

Share

Share this open source project.

JavaScript Frameworks

React Native · Open Source · HeyBinyang