Skip to content

Commit

Permalink
flow: Fix the messageInput and topicInput types
Browse files Browse the repository at this point in the history
Until now Flow have not checked `ComposeBox.android.js` so it
did not catch a mistake of ours. The two values are not of type
`TextInput`, which is a type that refers to the rendered component,
but are references to the native component that is named as
`InternalTextInputType` inside the React Native source code.

This type is not exported though so we can not access i (also, it does
not seem to be complete, missing the `focus` function)
  • Loading branch information
borisyankov committed Oct 21, 2018
1 parent 3af731e commit 2ec467f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compose/ComposeBox.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ class ComposeBox extends PureComponent<Props, State> {
props: Props;
state: State;

messageInput: ?TextInput = null;
topicInput: ?TextInput = null;
messageInput: any = null;
topicInput: any = null;

static contextTypes = {
styles: () => null,
Expand Down

0 comments on commit 2ec467f

Please sign in to comment.