Implement keypads module in React

This commit is contained in:
Daniel Sinn
2019-11-26 02:37:06 -05:00
parent 2fb6fd8446
commit 3c9ea427d8
38 changed files with 188 additions and 85 deletions
+8 -2
View File
@@ -5,7 +5,13 @@ class KtaneModule extends Component {
constructor(props) {
super(props);
this.resetState();
this.state = this.getInitialState();
this.resetState = this.resetState.bind(this);
}
getInitialState() {
throw new Error("getInitialState() not implemented.");
}
getTitle() {
@@ -27,7 +33,7 @@ class KtaneModule extends Component {
}
resetState() {
throw new Error("mainRender() not implemented.");
this.setState(this.getInitialState());
}
}