Skip to content

Infra/rn73 #3264

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 20 commits into from
Nov 6, 2024
Merged

Infra/rn73 #3264

merged 20 commits into from
Nov 6, 2024

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What do you mean by "remove string support"?
Do we do anything special with the strings? we just pass it on to style props..

@M-i-k-e-l
Copy link
Collaborator

Managed to install Android after updating Android Studio and jdk to version 17.
Still cannot install pods: CocoaPods could not find compatible versions for pod "RCT-Folly"

{
extensions: ['.js', '.jsx', '.ts', '.tsx'],
root: ['.'],
alias: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we delete src/.babelrc.json? Or remove some of the configuration there?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure TBH, I forgot about this file... now I see it did the same thing in the main babel

metro.config.js Outdated
// inlineRequires: false
// }
// }),
// babelTransformerPath: require.resolve('react-native-svg-transformer')
Copy link
Collaborator

Choose a reason for hiding this comment

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

SVG file is not working in RN73 (did not test in master yet)

Copy link
Collaborator

Choose a reason for hiding this comment

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

It's working on master

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I put it aside during upgrade. Fixed now
Thanks 🙏

/**
* The dialog height (default: undefined)
*/
height?: string | number | null;
height?: DimensionValue | null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
height?: DimensionValue | null;
height?: DimensionValue;

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think the null is on purpose
That's the use way to make the height be content based

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that DimensionValue already has null (can't verify since it's not installed ATM)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You are right, fixed

@ethanshar ethanshar requested a review from Inbal-Tish October 8, 2024 12:24
@ethanshar ethanshar marked this pull request as ready for review November 6, 2024 09:17
@ethanshar ethanshar merged commit 5e4c08a into master Nov 6, 2024
1 check passed
@ethanshar ethanshar deleted the infra/rn73 branch November 6, 2024 11:30
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.

4 participants