[fix] KeyboardAvoidingView missing 'this' binding

Close #762
This commit is contained in:
Johannes
2018-01-10 14:25:45 +01:00
committed by Nicolas Gallagher
parent 2117e44e9d
commit 067e3f346f

View File

@@ -40,7 +40,7 @@ class KeyboardAvoidingView extends Component<*> {
onKeyboardChange(event: Object) {}
onLayout(event: ViewLayoutEvent) {
onLayout = (event: ViewLayoutEvent) => {
this.frame = event.nativeEvent.layout;
}