-
Notifications
You must be signed in to change notification settings - Fork 274
chore: bump React Native to 0.64 RC #626
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
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.
Thanks!
Needs a rebase |
@@ -6,11 +6,11 @@ import makeQuery from './makeQuery'; | |||
type GetReturn = ReactTestInstance; | |||
type GetAllReturn = Array<ReactTestInstance>; | |||
type QueryReturn = ReactTestInstance | null; | |||
type QueryAllReturn = Array<ReactTestInstance> | []; |
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.
Removed the []
fallback, as Flow treats it as a tuple and thinks that the array has no elements. Which may be true, but would require users to optional-chain a lot
@@ -116,7 +116,7 @@ export function matchObject<T: {}>(prop?: T, matcher: T): boolean { | |||
: false; | |||
} | |||
|
|||
const a11yAPI = (instance: ReactTestInstance): A11yAPI => | |||
export const a11yAPI = (instance: ReactTestInstance): A11yAPI => |
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.
changed to be consistent with other queries
Summary
Making sure we're compatible with the latest upcoming RN and Flow versions.
Test plan
CI