Skip to content

Instantly share code, notes, and snippets.

@Sangrene
Last active April 10, 2019 13:44
Show Gist options
  • Save Sangrene/2b868a0bef277c12892102e88ba86ae5 to your computer and use it in GitHub Desktop.
Save Sangrene/2b868a0bef277c12892102e88ba86ae5 to your computer and use it in GitHub Desktop.
import React from "react";
import { View, TouchableOpacity } from "react-native";
class MyChildComponent extends React.Component {
render(){
}
}
class MyParentComponent extends React.Component {
constructor(props){
super(props);
this.state = {
id: 1
}
}
render(){
return(
<View>
</View>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment