entria / react-native-view-overflow

Fix Overflow in react-native for Android
MIT License
303 stars 44 forks source link

Overflow not working. #48

Open jacoblukose opened 5 years ago

jacoblukose commented 5 years ago

My view component:

        <View style={cardImageContainer}>
           <Image source={source["uri"]} style={cardImage} />
        </View>

Used with overflow :

      <ViewOverflow>  
         <View style={cardImageContainer}>
             <Image source={source["uri"]} style={cardImage} />
         </View>
       </ViewOverflow>

But the above doesnt seem to work.

Styles:

    cardImageContainer: {
        height: 131,
        width: 85,
        overflow: "hidden",
        marginTop: 20,
        marginBottom: 21

        // borderColor: "green",
        // borderWidth: 0.5
    },
    cardImage: {
        height: 131,
        width: 85,
        opacity: 0.5,
        position: "absolute",
        right: 31,
        overflow: "visible"
    },
jgcmarins commented 5 years ago

do you have any ss?

jacoblukose commented 5 years ago

do you have any ss?

what is ss @jgcmarins .

I suppose its screenshot :D

screen shot 2018-12-04 at 11 27 18 am

Right side of the shape is having overflow: visible.

jgcmarins commented 5 years ago

I suppose its screenshot :D

that's it \o/

pedrobullo commented 5 years ago

You should put in parent directly. Just nest overflowview

hadnet commented 5 years ago

Same thing here, it does not work.

wangfpp commented 5 years ago

it don't work