Open SrinjoyBarman opened 3 weeks ago
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - 0.75.2. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
Description
Hi,
According to the above image, you can see that its not taking up full height.
Below is my app.tsx
import React from 'react'; import type {PropsWithChildren} from 'react'; import { SafeAreaView, ScrollView, StatusBar, StyleSheet, Text, useColorScheme, View, } from 'react-native';
import {Colors} from 'react-native/Libraries/NewAppScreen';
type SectionProps = PropsWithChildren<{ title: string; }>;
const Section: React.FC = ({children, title}) => {
const isDarkMode = useColorScheme() === 'dark';
return (
); };
const App: React.FC = () => { const isDarkMode = useColorScheme() === 'dark';
return ( <SafeAreaView style={[ styles.safeArea, {backgroundColor: isDarkMode ? Colors.darker : Colors.lighter}, ]}> <StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} backgroundColor={isDarkMode ? Colors.darker : Colors.lighter} /> <ScrollView contentInsetAdjustmentBehavior="automatic" style={{ flex: 1, backgroundColor: isDarkMode ? Colors.black : Colors.white, }}>
); };
const styles = StyleSheet.create({ safeArea: { flex: 1, }, sectionContainer: { marginTop: 32, paddingHorizontal: 24, }, sectionTitle: { fontSize: 24, fontWeight: '600', }, sectionDescription: { marginTop: 8, fontSize: 18, fontWeight: '400', }, highlight: { fontWeight: '700', }, });
export default App;
Can you please help me solve the issue?
Steps to reproduce
React Native Version
0.75.2
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
NA
Screenshots and Videos
No response