You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
boxShadow on TextInput alternates visible/hidden with each key typed on Android #47920
Very simple - when typing in a TextInput on Android, each alternate keypress seems to enable/disable the boxShadow style on the TextInput. This behaviour is not seen on iOS; there, the boxShadow stays visible as expected.
This affects Expo 52/React Native 0.76.
Steps to reproduce
Run the Snack in Android
React Native Version
0.76.3
Affected Platforms
Runtime - Android
Output of npx react-native info
info Fetching system and libraries information...
System:
OS: Windows 11 10.0.22631
CPU: (16) x64 Intel(R) Core(TM) i7-9800X CPU @ 3.80GHz
Memory: 105.98 GB / 127.71 GB
Binaries:
Node:
version: 20.10.0
path: C:\Program Files (x86)\Nodist\bin\node.EXE
Yarn: Not Found
npm:
version: 10.2.3
path: C:\Program Files (x86)\Nodist\bin\npm.EXE
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-242.23339.11.2421.12550806
Visual Studio: Not Found
Languages:
Java: 17.0.13
Ruby: Not Found
npmPackages:
"@react-native-community/cli":
installed: 15.1.2
wanted: latest
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.76.3
wanted: 0.76.3
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Could not parse version: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.76.2.
Could not parse version: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.76.2.
@oddlyspaced hmm, really? It replicates for me in the snack on 2 separate devices. Are you definitely using the Android simulator, and set to Expo 52.0.0?
@NickGerleman Thanks for taking a look! Yeah, if the shadow is on a wrapping view and not on the TextInput itself, then typing in the TextInput does not affect the parent view shadow, it seems to work correctly.
This does not seem to repro for me, using RNTester playground in main branch build. Might have been fixed since 0.76? Worth retesting on 0.77 or nightly.
Activity
react-native-bot commentedon Nov 24, 2024
Warning
Could not parse version: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.76.2.
react-native-bot commentedon Nov 24, 2024
Warning
Could not parse version: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.76.2.
oddlyspaced commentedon Nov 24, 2024
@albertsokol I wasn't able to replicate it on the snack. Can you check?
albertsokol commentedon Nov 24, 2024
@oddlyspaced hmm, really? It replicates for me in the snack on 2 separate devices. Are you definitely using the Android simulator, and set to Expo 52.0.0?
albertsokol commentedon Nov 24, 2024
RPReplay_Final1732460692.mov
NickGerleman commentedon Nov 24, 2024
Thanks for the report! I will try to take a look at this soon. Seems likely something may be fussing around with the inputs background drawable.
Ad a temporary workaround, does it work if you wrap the input in a view with the shadow?
albertsokol commentedon Nov 25, 2024
@NickGerleman Thanks for taking a look! Yeah, if the shadow is on a wrapping view and not on the TextInput itself, then typing in the TextInput does not affect the parent view shadow, it seems to work correctly.
NickGerleman commentedon Dec 16, 2024
This does not seem to repro for me, using RNTester playground in main branch build. Might have been fixed since 0.76? Worth retesting on 0.77 or nightly.
Screen.Recording.2024-12-16.at.12.06.12.PM.mov
react-native-bot commentedon Jan 27, 2025
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.
react-native-bot commentedon Feb 3, 2025
This issue was closed because it has been stalled for 7 days with no activity.
react-native-bot commentedon Feb 3, 2025
This issue was closed because the author hasn't provided the requested feedback after 7 days.
ViniciusLeviVL commentedon Jun 3, 2025
+1