- Create Components folder under src folder
- Add CopyrightSymbolIconEXP.js file and add below Code
import React from "react";
import { Platform, StyleSheet, View, Text } from "react-native";
const CopyrightSymbolIconEXP = () => {
return (
<View style={styles.MainContainer}>
<Text>Copyright Symbol © Icon example</Text>
<Text style={styles.textStyle}> {"\u00A9"}allinoneweb.net </Text>
</View>
);
};
export default CopyrightSymbolIconEXP;
const styles = StyleSheet.create({
MainContainer: {
flex: 1,
paddingTop: Platform.OS === "ios" ? 20 : 0,
alignItems: "center",
justifyContent: "center"
},
textStyle: {
color: "#000",
fontSize: 20
}
});
- Open App.js file and update code as below
import React from 'react';
import { Text,View,StyleSheet } from 'react-native';
import CopyrightSymbolIconEXP from './src/Component/CopyrightSymbolIconEXP'
const App=()=> {
return (
<View style={styles.container}>
<CopyrightSymbolIconEXP/>
</View>
);
}
export default App;
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
paddingTop:80
},
});
No comments:
Post a Comment