Comments (4)
You are making the statusbar translucent in render, so it's going to happen after the component mounts which will then trigger event with new size. It seems expected. You need to set translucent statusbar in your native theme to avoid this.
from react-native-safe-area-context.
What do you mean by native theme?
from react-native-safe-area-context.
What do you mean by native theme?
from react-native-safe-area-context.
@wong2 @lumberman 'native theme' means setting the values in XML using android theme values (edit: or programattically in java app code, I suppose)
see: https://developer.android.com/reference/android/R.attr#windowTranslucentStatus
In my case, I specified this behavior in android/app/src/main/res/values/styles.xml
:
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
...
<item name="android:windowTranslucentStatus">true</item> <!-- Added this -->
With this style, content extends under the statusbar, and the safe area insets
properly include the status bar.
from react-native-safe-area-context.
Related Issues (20)
- useSafeAreaInsets not working HOT 2
- Bottom inset on samsung galaxy S23 Ultra (physical device) is 0 HOT 3
- SafeAreaProvider as root of screens HOT 1
- Build error when use Fabric mode HOT 2
- Doesn't account for notch on Pixel 7 in landscape mode HOT 4
- Crash on Android 14 (S24 Ultra) when setting edges prop on RNCSafeAreaView HOT 5
- Issue with mock: InteractionManager.createInteractionHandle is not a function HOT 1
- Add support for react native 0.73 which uses android gradle version of 8.1.1 which comes pre bundled with react native HOT 1
- [Android] Task :react-native-safe-area-context:compileReleaseKotlin FAILED HOT 2
- React-RCTFabric compile issue HOT 3
- 【Android】Build failed with an exception, Execution failed for task ':react-native-safe-area-context:verifyReleaseResources' HOT 1
- Expo SDK 50, React Native, Cannot read properties of null (reading 'declarations') HOT 3
- insets.top switching to 0 during iPad orientation change HOT 11
- issues with xcode 15.3 HOT 2
- Build Failures in React Native New Architecture - Chip M Apple HOT 2
- I get a Error of manual link react-native-safe-area-context to android HOT 9
- Android build error in React Native 0.74 HOT 9
- React Native Bridgeless support? HOT 1
- RN 0.74.0: Type mismatch: inferred type is Map<String, Any>? but Any was expected HOT 3
- Android build error on 0.74 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-safe-area-context.