Skip to content

TextInput flow type for props is not exported #26263

Description

@vasilich6107

If we look through this file we can see that there are a lot of types are exported.
https://github.com/facebook/react-native/blob/master/Libraries/Components/TextInput/TextInput.js

But the main type type Props = {...} is not exported.

I'm using react-native-material-textfield(https://github.com/n4kz/react-native-material-textfield) and I can not make proper typings for it cause I'm not able to write something like:

import type { TextFieldProps } from 'react-native-material-textfield';
import type { Props } from 'react-native/Libraries/Components/TextInput/TextInput';

type ResultingProps = {|
    ...TextFieldProps,
    ...Props
|};

React Native version:
0.60.4

Steps To Reproduce

Look at this line
https://github.com/facebook/react-native/blob/master/Libraries/Components/TextInput/TextInput.js#L412

Describe what you expected to happen:
Could you add export to the type Props in nearest release?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugComponent: TextInputRelated to the TextInput component.FlowStaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions