Skip to content

Instantly share code, notes, and snippets.

@melihmucuk
Last active August 29, 2015 14:24
Show Gist options
  • Save melihmucuk/906b17866ed51f459089 to your computer and use it in GitHub Desktop.
Save melihmucuk/906b17866ed51f459089 to your computer and use it in GitHub Desktop.
React Native View States
var PHReact = React.createClass({
getInitialState: function() {
console.log("initial state");
return {
token:"",
};
},
componentWillMount: function(){
console.log("component will mount");
},
componentDidMount: function() {
console.log("component did mount");
},
render: function() {
console.log("render");
return (
<View></View>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment