Open aleclarson opened 5 years ago
Wow, this one is hard. Text inputs are particularly hard to keep up with RN for iOS due to differences between UIKit and AppKit.
Haha yep. It's been... a learning experience. π
It's so nice seeing my old dusty project (NSLabel) being used like that... π₯° Thanks again @aleclarson for the PRs you sent me! I already released it as version 1.1.0 on Cocoapods. If you fix any other issues it'd be very kind of you if you could send me PRs for these as well. π
@lhecker Of course! Thanks again for open-sourcing your work in 2015. π
The remaining bugs are up to the community to fix; unless I ever need them fixed for my own project, that is! Until then, this PR will remain unmerged. π
If only we have enough time to revive CI and tests. :(
π§ Work in progress
Opening this PR now that its changes are compiled without error. I'll be testing it today, so I decided to share my progress in case anyone wants to help out.
2/27/2019: I've fixed all of the issues that will affect my current project. I don't have time to fix the remaining bugs, so it would be great if anyone could lend a hand! Simply direct any PRs toward the
text
branch of this repository. π Once all of the known bugs are fixed, we can merge this! πDetails
The
./React
,./ReactCommon
and./Libraries/Text
directories have been updated to this commit: https://github.com/facebook/react-native/commit/2716f53220f947c690d5f627286aad51313256a0 (from 01/09/2018 to 01/24/2018)The goals are as follows:
<TextInput>
<TextInput>
<TextInput>
scrollable when amaxHeight
is used<TextInput>
placeholders more memory-efficientKnown bugs
password
prop not workingText
inside multilineTextInput
not workingfocusRingType
prop not workingselection
prop not workingTextInput
does not scroll its enclosing scroll viewsTextInput
jumps to top when a new line is added to the end via the "return" keyTextInput
is emptyRelated issues
Closes #216 Closes #148
Skipped commits
The following commits were skipped and may be cherry-picked in the future:
Cherry-picked commits
I also picked some commits ahead of https://github.com/facebook/react-native/commit/2716f53220f947c690d5f627286aad51313256a0 that fix some issues:
onChange
event triggering from[RCTShadowView isHidden]
was removed" (https://github.com/facebook/react-native/commit/c19bc79688)processUpdatedProperties
&collectUpdatedProperties
was removed from RCTShadowView" (https://github.com/facebook/react-native/commit/0f9fc4b295)[ShadowView collectUpdatedFrames:]
" (https://github.com/facebook/react-native/commit/9dfa2e7f3c)base-line
metric exposure for