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 :: js convert string to script 
Javascript :: onclick change text color javascript 
Javascript :: regex validate link 
Javascript :: queryselector attribute 
Javascript :: mongoose generate new ObjectID 
Javascript :: how map on object in javascrtipt 
Javascript :: javascrip for each element of class 
Javascript :: javascript generate unique id 
Javascript :: image on press 
Javascript :: if button is keeping pressed execute increment javascript 
Javascript :: update object in react hooks 
Javascript :: prompt box to integer 
Javascript :: for loop array javascript 
Javascript :: jquery get 
Javascript :: js number to ascii 
Javascript :: set cookie javascript 
Javascript :: jetbrains mono 
Javascript :: dynamics js search another entity 
Javascript :: javascript text to speech 
Javascript :: make url clickable js 
Javascript :: strtotime in javascript 
Javascript :: regex to extract a phone number with country code 
Javascript :: cannot use import statement outside a module from the console.log 
Javascript :: ascii to hex js 
Javascript :: regex to match empty string 
Javascript :: indexof case insensitive javascript 
Javascript :: jquery confirm delete massege 
Javascript :: gmail regex 
Javascript :: javascript oncontextmenu 
Javascript :: select option value jquery 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =