mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-07 13:05:18 +08:00
Summary: Bug comes from #23545, if `allowedLength < 0`, it would crash if `text.length > 1`. cc. cpojer [iOS] [Fixed] - Fixed crash when textinput's default value exceeds maxLength Pull Request resolved: https://github.com/facebook/react-native/pull/24084 Differential Revision: D14562719 Pulled By: cpojer fbshipit-source-id: 87ed930e35b8fa889d8b04829795fa46b7787b07