These components will have changing States.
import React, { Component } from 'react'
import { View, Text, AppRegistry } from 'react-native'
class Example extends Component {
constructor (props) {
super(props)
this.state = {
name: "Sriraman"
}
}
render () {
return (
<View>
<Text> Hi, {this.state.name}</Text>
</View>
)
}
}
AppRegistry.registerComponent('Example', () => Example)