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

Wrong top inset with dynamic island #559

Open
quangtuan28200 opened this issue Dec 6, 2024 · 0 comments
Open

Wrong top inset with dynamic island #559

quangtuan28200 opened this issue Dec 6, 2024 · 0 comments

Comments

@quangtuan28200
Copy link

Hi, I'm using v4.10.8, RN 0.74.3
it's seem wrong top inset

image

function Test() {
	const insets = useSafeAreaInsets();
	return (
		<SafeAreaView
			style={{
				flex: 1,
				backgroundColor: '#fff',
				justifyContent: 'center',
			}}
		>
			<View style={{ flex: 1, backgroundColor: '#eee' }}>
				<Text>{JSON.stringify(insets)}</Text>
			</View>
		</SafeAreaView>
	);
}

const App = () => (
	<SafeAreaProvider>
		<Test />
	</SafeAreaProvider>
);
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

No branches or pull requests

1 participant