folofse / androw

Shadows in React Native for Android
97 stars 16 forks source link

Androw not working only for Text Component #16

Closed WrathChaos closed 4 years ago

WrathChaos commented 4 years ago

Hello @folofse, I've tried to set shadow for Android with Androw on Text component however it simply does not work and throw an error. Do you think is that possible to use Androw for Text component as well? (I'm gonna upload the error image ASAP)

Reproducible code:


import { Text } from "react-native"
import Androw from "react-native-androw"

 <Androw
    style={{
          shadowOpacity: 0.7,
          shadowColor: "#000",
          shadowOffset: {
            width: 0,
            height: 2
          }
    }}
>
    <Text
       style={{
            fontSize: 18,
            marginRight: 16,
            color: "#fdfdfd",
            textAlign: "right"
       }}
    >
       {`${someValues}`}
    </Text>
</Androw>
folofse commented 4 years ago

Hi @WrathChaos

Unfortunately I´m not able to recreate your problem, could you please provide the error screen and I will investigate it further.

WrathChaos commented 4 years ago

I think it was my wrong usage. Closed it. Thank you @folofse