V
V
Victoria Zgolich2019-04-18 12:45:02
Android
Victoria Zgolich, 2019-04-18 12:45:02

How to make shadow on android React Native?

I prescribe the parameters for the shadow:

shadowOpacity: 0.1,
shadowRadius: 8,
shadowOffset: { width: 0, height: 4 },
shadowColor: '#000',

In iphone everything is displayed as it should, in android nothing at all.
Googling, I saw that they use such "elevation: 2". But nothing good happens to me.
Are there any other secrets when creating a shadow for android?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2019-04-20
@ynizhenie

try this: react-native-shadow

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question