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

fix: expo 52 and react navigation 7 #432

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

dannyhw
Copy link
Collaborator

@dannyhw dannyhw commented Nov 18, 2024

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

@dannyhw dannyhw mentioned this pull request Nov 18, 2024
@dannyhw dannyhw marked this pull request as draft November 18, 2024 20:48

type ButtonProps = {
title: string;
} & TouchableOpacityProps;

export const Button = forwardRef<TouchableOpacity, ButtonProps>(({ title, ...touchableProps }, ref) => {
export const Button = forwardRef<View, ButtonProps>(({ title, ...touchableProps }, ref) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was erroring because TouchableOpacity's seems to have changed and is no longer a type its just a value (function)

@@ -1,7 +1,7 @@
import { Theme } from '@react-navigation/native';
import { COLORS } from './colors';

const NAV_THEME: { light: Theme; dark: Theme } = {
const NAV_THEME: { light: Partial<Theme>; dark: Partial<Theme> } = {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

something is going on here, we maybe need to put fonts in the theme now

import { DefaultTheme, Theme } from '@react-navigation/native';

// could go like this??
 light: {
  fonts: DefaultTheme.fonts,
}

@dannyhw dannyhw changed the title fix/peer deps errors npm fix: expo 52 and react navigation 7 Nov 25, 2024
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