-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MultilineTextInput drag/drop support #1351
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I should really add those props to Pressable one day...)
Could you actually add that test page to RN-Tester? And if you don't specify |
f4f2229
to
06a8dcb
Compare
I have added an example for the TextInput.example on macOS The behavior is the same before (only the example w/o the native changes) before.movand after my native code changes after.movJFYI: Drag/Drop partially works for SingleLineTextInputs only even w/o my changes as it piggy bags on the RCTView handler ... |
I guess this one has conflicts now? |
This allows `MultilineTextInput` to also accept and respond to the same drag and drop props as `View` (and as SingleLineTextInput) which is discussed here microsoft#842
06a8dcb
to
f7a6f39
Compare
rebased ... |
I'm seeing some strange behavior when a SingleLine TextInput has keyboard focus. If I drag a file over. then both Screen.Recording.2022-09-07.at.11.48.55.PM.mov |
I don't. SingleLineTextFields on macOS are just different (immature?) compared to MultilineTextFields, because one is based on NSTextField and the other on NSTextView |
This allows `MultilineTextInput` to also accept and respond to the same drag and drop props as `View` (and as SingleLineTextInput) which is discussed here microsoft#842 Co-authored-by: Scott Kyle <[email protected]> # Conflicts: # Libraries/Text/TextInput/Multiline/RCTUITextView.m # packages/rn-tester/js/examples/TextInput/TextInputExample.ios.js
This allows `MultilineTextInput` to also accept and respond to the same drag and drop props as `View` (and as SingleLineTextInput) which is discussed here microsoft#842 Co-authored-by: Scott Kyle <[email protected]> # Conflicts: # Libraries/Text/TextInput/Multiline/RCTUITextView.m # packages/rn-tester/js/examples/TextInput/TextInputExample.ios.js
Please select one of the following
Summary
This allows
MultilineTextInput
to also accept and respond to the same drag and drop props asView
(and as SingleLineTextInput) which is discussed here #842Changelog
[macOS] [Added] - Add MultilineTextInput drag/drop support
Test Plan
Using this customized example from https://github.com/microsoft/react-native-macos/blob/main/packages/rn-tester/js/examples/Touchable/TouchableExample.js#L523-L538
Before
b.mov
After
a.mov