Skip to content
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

Infra/rn73 #3264

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

Infra/rn73 #3264

wants to merge 12 commits into from

Conversation

ethanshar
Copy link
Collaborator

@ethanshar ethanshar commented Sep 19, 2024

Description

I know it's a huge PR, I suggest going over it by commits

  • General upgrade changes - 892899e
  • Android upgrade changes - 9a68de6
  • iOS upgrade changes 0336110
  • TS erros fixes 32b6850 - important!
  • Tests fixes 3b4d289 - important!
    There are other less important small commits in between...

Changelog

Upgrade support to React Native 0.73

Additional info

@ethanshar ethanshar added the WIP label Sep 23, 2024
@ethanshar ethanshar marked this pull request as draft September 23, 2024 04:02
@@ -104,7 +104,7 @@ describe('Incubator.Dialog sanity checks', () => {
const onDismiss = jest.fn();
const component = <TestCase2 onDismiss={onDismiss}/>;
const {dialogDriver} = getDriver(component);
expect(dialogDriver.exists()).toBeTruthy();
expect(dialogDriver.exists()).toBeFalsy();
Copy link
Collaborator

Choose a reason for hiding this comment

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

You need to change the description of the test - Modal should not exist...

const {renderTree, testID} = props;

const driver = usePressableDriver(useComponentDriver({renderTree, testID}));
const isUsingDialog = !!renderTree.queryByTestId(`${testID}.overlay.modal`);
// const isUsingDialog = !!renderTree.queryByTestId(`${testID}.overlay.modal`);
const isUsingDialog = useDialog;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why we need isUsingDialog const now?

export interface ComponentProps {
renderTree: ReturnType<typeof within>; // Note: This changed was asked for integration with amino. This still gives all querying functionality.
testID: string | RegExp;
}

export interface ComponentDriverResult {
getElement: () => ReactTestInstance;
queryElement:() => ReactTestInstance | undefined;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing a space after the colon

@Inbal-Tish
Copy link
Collaborator

Inbal-Tish commented Sep 25, 2024

@ethanshar Looks good. Left super small comments and you need to take it out of draft mode

@@ -42,11 +42,11 @@ export type CardProps = ViewProps &
/**
* card custom width
*/
width?: number | string;
width?: DimensionValue;
Copy link
Contributor

Choose a reason for hiding this comment

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

DimensionValue doesn't support string value without %.
Do we want to remove the string support from these props?

Relevant for all the components with DimensionValue type.

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

Successfully merging this pull request may close these issues.

3 participants