Skip to main content

App

Wrapper component which should be placed at the top of the app.

Read more about this component

Usage

import * as React from 'react';
import { Text } from 'react-native';
import { App, StyleSheet } from '@flexn/create';

const MyApp = () => {
return (
<App style={styles.container}>
<Text style={styles.text}>Hello from Flexn Create!</Text>
</App>
);
};

const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#FFFFFF',
},
text: {
fontSize: 22,
},
});

export default MyApp;

Props

Inherits all props from https://reactnative.dev/docs/view.