Skip to content

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

Merged
merged 15 commits into from
Dec 9, 2020
Merged

chore: bump React Native to 0.64 RC #626

merged 15 commits into from
Dec 9, 2020

Conversation

suezzo
Copy link
Contributor

@suezzo suezzo commented Dec 9, 2020

Summary

Making sure we're compatible with the latest upcoming RN and Flow versions.

Test plan

CI

Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@thymikee
Copy link
Member

thymikee commented Dec 9, 2020

Needs a rebase

@suezzo suezzo requested a review from thymikee December 9, 2020 15:11
@@ -6,11 +6,11 @@ import makeQuery from './makeQuery';
type GetReturn = ReactTestInstance;
type GetAllReturn = Array<ReactTestInstance>;
type QueryReturn = ReactTestInstance | null;
type QueryAllReturn = Array<ReactTestInstance> | [];
Copy link
Member

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 =>
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants