npm start
a

View

import React from 'react';
import {SafeAreaView, StyleSheet, Text, View} from 'react-native';

const AboutScreen = (): JSX.Element => {
  return (
    <SafeAreaView style={styles.container}>
      <Viewstyle={{
          padding: 20,
          backgroundColor: 'skyblue',
          margin: 10,
          borderWidth: 2,
          borderRadius: 10,
          borderColor: 'black',
          width: 100,
          height: 200,
        }}/>
    </SafeAreaView>);
};
// css
const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: 'white',
  },
});
export default AboutScreen;
import React from 'react';
import {SafeAreaView, StyleSheet, View} from 'react-native';

const AboutScreen = (): JSX.Element => {
  return (
    <SafeAreaView style={styles.container}>
      <View style={styles.viewStyle} />
    </SafeAreaView>);
};
// css
const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: 'white',
  },
  viewStyle: {
    padding: 20,
    backgroundColor: 'skyblue',
    margin: 10,
    borderWidth: 2,
    borderRadius: 10,
    borderColor: 'black',
    width: 100,
    height: 200,
  },
});
export default AboutScreen;
import React from 'react';
import {SafeAreaView, StyleSheet, Text, View} from 'react-native';

const AboutScreen = (): JSX.Element => {
  return (
    <SafeAreaView style={styles.container}>
      <View style={styles.viewStyle}>
        <Text>Hello</Text>
      </View>
    </SafeAreaView>);
};
// css
const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  viewStyle: {
    flex: 1,
    flexDirection: 'row',
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: 'skyblue',
  },
  viewStyle2: {
    flex: 1,
    backgroundColor: 'orange',
  },
});
export default AboutScreen;

Text