Skip to content

Commit ea5c995

Browse files
committed
fix: bring back androidElevation and androidDynamicElevation. Should work too
1 parent 2005dab commit ea5c995

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/core/index.android.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,12 @@ class ViewWithElevationAndRipple extends View {
285285
}
286286
class ViewOverride extends View {
287287
[androidElevationProperty.setNative](value: number) {
288-
// override to prevent override of elevation
288+
// override to prevent override of dynamicElevationOffset
289+
this[elevationProperty.setNative](value);
289290
}
290291
[androidDynamicElevationOffsetProperty.setNative](value: number) {
291-
// override to prevent override of dynamicElevationOffset
292+
// override to prevent override of elevation
293+
this[dynamicElevationOffsetProperty.setNative](value);
292294
}
293295
}
294296

0 commit comments

Comments
 (0)