React Native External Style

 App Name :- Test

Component Name:- App.js

--------------------------------------------------------------------------------------------------

import React, { Component } from 'react'
import { View, Text, Button,StyleSheet } from 'react-native';
import Home from './Component/Home'
class App extends Component {
render()
{
return(
<View>
<Text style={CustomeStyle.red}>ReactNative King </Text>
</View>

)
}
}
const CustomeStyle=StyleSheet.create({
red:{
fontSize:30,
color:'red',
backgroundColor:'green'
}
})
export default App;

Comments

Popular posts from this blog

React Native FlatList

React Native class component