Closed ospfranco closed 2 weeks ago
@ospfranco What about using SafeAreaView from base react native library? The problem still exists?
No, normal SafeAreaView was working I think
I will have a look asap, I know 0.74 had a lot of changes in yoga so maybe that broke when migrating to the new api.
also reproduced with RN 0.74.2
Bundle Log:
(NOBRIDGE) LOG Bridgeless mode is enabled
(NOBRIDGE) LOG Running "mobile" with {"rootTag":1,"initialProps":{"concurrentRoot":true},"fabric":true}
Example:
import { View } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
const App = props => {
return (
<SafeAreaView style={{flex:1, backgroundColor:'white'}}>
<View style={{borderWidth:1, borderColor:'red', flex:1}} />
</SafeAreaView>
);
};
export default App;
import { View, SafeAreaView } from 'react-native'; | import { View } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; |
---|---|
@janicduplessis any news here?
Sorry about the delay here, I just tested and reproduced the issue. Looking at it now.
Should be fixed in 4.10.5
Here is a reproduction repo of a bare RN app:
Text should respect top margin
https://github.com/ospfranco/broken-safe-area-view
Just do:
With the new arch enabled safeAreaView does not work
env