TextInput maxLength documentation uses the wrong type
Author: huytdps13400Created Aug 30, 2026Updated Aug 30, 2026
Is there an existing issue for this?
- I have searched the existing issues
Describe the issue
The TextInput documentation currently lists maxLength as ?string. The public Flow type in packages/react-native-web/src/exports/TextInput/types.js declares maxLength?: ?number, which also matches the numeric HTML maxlength contract.
This can mislead users generating typed wrappers from the documentation.
Expected behavior
The TextInput documentation should list maxLength as ?number.
Steps to reproduce
Open https://necolas.github.io/react-native-web/docs/text-input/ and inspect the maxLength entry.
Test case
https://necolas.github.io/react-native-web/docs/text-input/
Additional comments
This is documentation-only; runtime behavior and the public Flow type are already correct.
Source: necolas/react-native-web