-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
base: main
Are you sure you want to change the base?
Conversation
|
||
type ButtonProps = { | ||
title: string; | ||
} & TouchableOpacityProps; | ||
|
||
export const Button = forwardRef<TouchableOpacity, ButtonProps>(({ title, ...touchableProps }, ref) => { | ||
export const Button = forwardRef<View, ButtonProps>(({ title, ...touchableProps }, ref) => { |
There was a problem hiding this comment.
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> } = { |
There was a problem hiding this comment.
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,
}
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):