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

chore: Upgrade react native #5041

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

jorelosorio
Copy link
Member

Closes https://github.com/AtB-AS/kundevendt/issues/19873

NOTE: Details about some findings in the issue

@jorelosorio jorelosorio self-assigned this Feb 25, 2025
@@ -221,7 +221,7 @@ export const Dashboard_TripSearchScreen: React.FC<RootProps> = ({
});
}

const searchTimeButtonRef = useRef();
const searchTimeButtonRef = useRef(null);
Copy link
Member Author

Choose a reason for hiding this comment

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

As the documentation says about breaking changes https://react.dev/blog/2024/04/25/react-19-upgrade-guide#useref-requires-argument now a value is required, however I am confused about what to use, null or undefined? could you please @gorandalum @rosvik to help me identify what works well in that case?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we should use undefined instead of null but for other cases looks like it need to be null instead of undefined

children: React.ReactNode;
}

export const AccessibilityContextProvider = ({children}: Props) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

@rosvik @gorandalum I was upgrading the react-native that now uses react 19 and there are some changes as listed here https://react.dev/blog/2024/04/25/react-19-upgrade-guide, seems like this is the way to go now, what do you think?

Copy link
Member Author

@jorelosorio jorelosorio left a comment

Choose a reason for hiding this comment

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

There are many compilation issues with the new version of react:

image

I need to have the help from the team to identify them and proper fix them.

@jorelosorio jorelosorio marked this pull request as ready for review March 3, 2025 14:00
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.

1 participant