Shadow Not Display in Android

This issue has been created since 2022-09-19.

Description

Hello Team,

I am currently working on react-native and I'm trying to display shadow to my view as shown below in Android. Same thing works well in IOS.
style={{
backgroundColor: "#FFF",
padding: 10,
elevation: 2,
shadowColor: "#000",
shadowOffset: {
width: 0,
height: 2,
},
shadowOpacity: 0.25,
shadowRadius: 3.84,
}}

But unfortunately, I am not seeing any change in my UI. The following are the dependencies used:
"dependencies": {
"@react-native-community/async-storage": "^1.12.1",
"@react-native-community/datetimepicker": "^6.2.0",
"@react-native-community/push-notification-ios": "^1.10.1",
"@react-native-firebase/app": "^15.2.0",
"@react-native-firebase/messaging": "^15.2.0",
"@react-navigation/native": "^6.0.11",
"@react-navigation/stack": "^6.2.2",
"bugsnag-react-native": "^2.23.10",
"i18n-js": "^3.9.2",
"lodash": "^4.17.21",
"moment": "^2.29.4",
"prop-types": "^15.8.1",
"react": "17.0.2",
"react-native": "0.68.2",
"react-native-animatable": "^1.3.3",
"react-native-background-timer": "^2.4.1",
"react-native-config": "^1.4.6",
"react-native-country-picker-modal": "^2.0.0",
"react-native-datepicker": "^1.7.2",
"react-native-document-picker": "^8.1.1",
"react-native-gesture-handler": "^2.5.0",
"react-native-image-crop-picker": "^0.38.0",
"react-native-iphone-x-helper": "^1.3.1",
"react-native-orientation-locker": "^1.5.0",
"react-native-push-notification": "^8.1.1",
"react-native-responsive-fontsize": "^0.5.1",
"react-native-safe-area-context": "^3.4.1",
"react-native-screens": "^3.15.0",
"react-native-simple-toast": "^1.1.4",
"react-native-splash-screen": "^3.3.0",
"react-native-swipe-gestures": "^1.0.5",
"react-native-vector-icons": "^9.2.0",
"react-navigation-shared-element": "^3.1.3",
"react-redux": "^8.0.2",
"redux": "^4.2.0",
"redux-persist": "^6.0.0",
"redux-thunk": "^2.4.1",
"sendbird": "^3.1.23"
},

It's been a week now trying to resolve this issue, but I'm unable to get any solution. Could you please help me out here?

Thanks in advance

Version

0.68.2

Output of npx react-native info

System:
OS: macOS 11.6.8
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 30.79 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.15.0 - /usr/local/bin/node
Yarn: 1.22.18 - /usr/local/bin/yarn
npm: 8.5.5 - /usr/local/bin/npm
Watchman: 2022.03.21.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
Languages:
Java: javac 15 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.2 => 0.68.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

<View style={{
backgroundColor: "#FFF",
padding: 10,
elevation: 2,
shadowColor: "#000",
shadowOffset: {
width: 0,
height: 2,
},
shadowOpacity: 0.25,
shadowRadius: 3.84,}}>
Hi

Snack, code example, screenshot, or link to a repository

image

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-10-07
Star Count 105180
Watcher Count 3671
Fork Count 22481
Issue Count 2230

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Roadmap has white background 1 2022-01-11 2022-08-01
Startup crash with OptiFine. 3 2021-04-11 2022-07-20
hello how to disable this mod? 4 2021-04-04 2022-08-31
Group CLI help commands by category 0 2022-08-25 2022-09-07
Prevent from running "too many tests"/ tests using "too much compute resources" 1 2022-08-24 2022-09-07
Optifine bootloading 2 2022-02-11 2022-10-04
runNative does not complete due to bootstrap.kt generated source file annotation requirement 1 2021-03-22 2022-08-30
能否编译下2021.9.4的 1 2021-12-17 2022-01-13
Allow 'playground' like behavior in all code blocks? 0 2021-05-07 2022-09-12
‘wxURL’ was not declared in this scope? 3 2022-06-19 2022-07-11
[New Rule] 0 2021-05-19 2022-01-14
How to make the header wider? 2 2021-07-07 2022-10-06
Invalid podspec file at path 2 2022-06-02 2022-09-25
Reduce empty address lines in "details" output + patch 0 2021-07-22 2022-08-26
Board fails to update, ghost material. 1 2021-10-02 2021-12-27
@rollup/plugin-typescript TS5023: Unknown compiler option 'extends'. 4 2021-09-24 2022-10-03
Affixes on item search no longer showing 4 2021-11-21 2022-10-02
Add social media cards 5 2020-11-26 2022-03-23
refueling material-restricted RCD with matter cartridges isn't functional 2 2022-08-14 2022-09-16
Handle validation pass 0 2022-01-24 2022-09-06
Rename `config:base` -> `config:recommended` 9 2021-10-05 2022-10-02
IL-2 Sturmovik - Birds of Prey graphic glitches in software renderer 1 2022-08-21 2022-09-12
[Regression] Crisis Core FMVs showing a black screen 2 2022-08-20 2022-09-12
Failure to display the Layers panel in lang Persian Geonode 3.3.1 0 2022-01-24 2022-09-07
Datapacks do not work with luckperms FABRIC. 2 2021-08-07 2022-02-19
Getting googleapi public keys 2 2022-03-16 2022-10-01
runc in containerd1.5.7 does not work on CentOS7 6 2021-10-06 2022-08-13
Explainer missing on gh-pages branch 1 2021-04-22 2022-09-17
How to unlock port.readable after pipeThrough() 2 2021-05-08 2022-09-17
How to disable default policies? 3 2022-06-13 2022-09-28
FR: [a handful of words describing the FR] 0 2022-07-26 2022-09-05
Error load variable 1 2021-01-23 2022-01-16
some hillshade rendering issues 6 2022-06-27 2022-09-14
NRFX samples use deprecated API 0 2022-06-17 2022-09-10
I got this error React.PropTypes is undefined 0 2022-01-27 2022-09-29
Deprecated keyword: push_header 0 2022-03-12 2022-09-24
Advertise WebCal calendar URLs (feature request) 10 2018-01-27 2022-07-27
PHP error on try to create the phpmyadmin without SQL files on disk 0 2022-09-07 2022-10-05
linux_kernel_ip: generating input 4 2017-06-02 2022-10-06
service chipsec didn't start 5 2022-05-14 2022-10-03
Video is not sent or received 7 2020-09-07 2022-09-25
unable to glob for dot files? 4 2021-12-21 2022-09-22
Requesting for release notes (change log) 1 2020-01-14 2022-09-07
Question - related to Panorama objects 'override' and 'revert' => pan-os-php merger scripts 4 2022-01-06 2022-08-06
Lithuania holidays for 2020-2025 1 2021-01-01 2022-09-03
2021-2030 US Holidays ICal File 0 2020-11-15 2022-08-07
Flash option should look for output based on CMake target name 0 2021-05-17 2022-10-05
Introduce a license check to OSGi 0 2021-01-11 2022-07-26
PI4 ARGON ONE CASE INCOMPATIBILITY 16 2020-06-05 2022-09-26
set_rollouts_locally(): Consume the feature_defaults.json in the SDK 0 2022-01-08 2022-01-17