card view shadow effect only top side react native [closed]

how to set react native android application top side set shadow… i trey shadowColor: “#000”, shadowOffset: { width: 0, height: 12, }, shadowOpacity: 0.58, shadowRadius: 16.00,

elevation: 24,

but cant work in set top

Answer

install this librery

npm i react-native-drop-shadow
import this line
import DropShadow from "react-native-drop-shadow";

use this view ginv to shasow

 <DropShadow
          style={{
            shadowColor: "#000",
            shadowOffset: {
              width: 0,
              height: 0,
            },
            shadowOpacity: 1,
            shadowRadius: 5,
          }}
        >
    ----- Your  Contain --------------
</DropShadow>