Open ospfranco opened 1 month ago
: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:
|
Managed to reproduce it, it's only happening when new arch is turned off
same issue
same issue for API Level 34
Hi, I'm going to try and come up with a solution for this issue. Can you please assign it to me?
Hi @ospfranco. I don't get the same issue, it works fine for me, with the following code:
import React from 'react';
import {View, StyleSheet} from 'react-native';
const App = () => {
return (
<View style={styles.container}>
<View
style={{
marginVertical: 400,
borderTopLeftRadius: 10,
borderTopRightRadius: 10,
backgroundColor: 'white',
padding: 14,
}}
/>
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#4F46E5',
padding: 16,
},
});
export default App;
I tested this on React Native 0.76.2 and React 18.3.1 on iOS 18.0 simultor. The app renders as expected without any faded bottom padding. I noticed that you're using Tailwind css in your code 'className="h-full bg-indigo-900 p-4"'. It's possible that the issue might be related to how Tailwind integrates with React Native in your setup. Could you please share your package.json and any relevant Tailwind configurations?
Thanks
You need to turn off the new arch. Did you run the reproduction I posted?
Thanks for pointing me into the right direction. I was able to replicate it. Let me see if I can come up with a solution for this.
Description
I have just updated to RN 0.76 and seeing some weird behavior with non integer values when applying corner radius. It creates a bottom padding that has a faded color.
Steps to reproduce
Create a simple view and apply the following values:
The output should look like this:
But instead it looks like this:
React Native Version
0.76.0
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/ospfranco/border-radius-bug
Screenshots and Videos
No response