Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

border radius not working ios react native

add
overflow: 'hidden'


Using overflow: 'hidden' on the same element that have borderRadius should fix this issue, I guess..

<Text
style={{
       borderRadius: 5,
       overflow: 'hidden',
       ....
      }}
        >
Comment

react native border radius not working ios

To anyone having this issue, I fixed It by wrapping the Image on a View component and applying the borderRadius to It instead of directly applying It to the Image.

{....}
<View style={styles.imageContainerIOS}>
	<Image
	     style={{ width: 100, height: 100 }} 
	    source={dummyImage}
	/>
</View>

{...}

imageContainerIOS: {
	borderBottomLeftRadius: 5,
	borderBottomRightRadius: 0,
	borderTopLeftRadius: 5,
	borderTopRightRadius: 0,
	overflow: 'hidden',
	marginRight: 20,
	},
{...}
Comment

PREVIOUS NEXT
Code Example
Javascript :: sequelize 
Javascript :: esql convert blob to json 
Javascript :: A better way to concatenate arrays 
Javascript :: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime in cypress tests 
Javascript :: Showing a custom toast function for react-toastify - Toast show 
Javascript :: js clone obj 
Javascript :: check if the collection exists in mongodb database mongoose 
Javascript :: handling transaction in sequelize 
Javascript :: how to create new route in express 
Javascript :: chatbot using html and javascript 
Javascript :: why is this undefined in react 
Javascript :: list in react native 
Javascript :: map react 
Javascript :: get width of html photo 
Javascript :: get dynamic value in jquery 
Javascript :: JavaScript substring Syntax 
Javascript :: indexof javascript 
Javascript :: shopify routes 
Javascript :: trigger keydown event javascript 
Javascript :: javascript pad string left 
Javascript :: javascript object methods 
Javascript :: send a message in every guild discord.js 
Javascript :: jquery traversing methods 
Javascript :: emailjs react 
Javascript :: fetch thingy 
Javascript :: javascript split multiple values 
Javascript :: object to string js 
Javascript :: set default value in dropdown angular 7 
Javascript :: javascript promise with ajax 
Javascript :: check if javascript function is true 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =