Use this function to create shadows for Android and iOS
yarn add react-native-shadow-style
import React from 'react'
import { View } from 'react-native'
import shadowStyle from 'react-native-shadow-style'
const App = () => (
<View
style={{
// Others styles
...shadowStyle(5)
}}
/>
)
import styled from 'styled-components/native'
import shadowStyle from 'react-native-shadow-style'
export const Container = styled.View.attrs({
...shadowGenerator(5),
})`
// Others styles
`