-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Build separate bundle for React Native #309
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// @flow | ||
|
||
const getValue = ( | ||
event: SyntheticInputEvent<*>, | ||
currentValue: any, | ||
valueProp: any, | ||
) => { | ||
if (event.nativeEvent) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've extracted this bit from the previous version of maybe this should be just const getValue = (event, currentValue, valueProp) => event.nativeEvent.text ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also have zero RN experience. Maybe we should find someone who does? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cc @MichelDiz @rafaelcorreiapoli @geowarin @erickjth @bogdansoare @ibratoev @cosmith @maciejmyslinski @ghoshabhi I think you guys were using (at least at some point in time) this library in RN. Could you take a look at this PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've never used react-final-form with react native. I asked my friends who code in react native for help, though. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cool! Sorry for pinging you then, I've looked through RN-related topics and pinged everyone who was involved. |
||
return (event.nativeEvent: any).text | ||
} | ||
} | ||
|
||
export default getValue |
This file was deleted.
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.
when
event.nativeEvent.text
is present in non-RN environment (I'm assuming browser target)?