Repository navigation
Automatic native box shadows, a reliable legacy fallback, and React Native Web support—all through the same DropShadow component.
✨ Added
- Automatic
boxShadowrendering on supported React Native 0.76+ / New Architecture configurations. - Android Kotlin fallback and original iOS shadow styles when automatic conversion is unavailable.
useLegacyShadowto retain legacy rendering, including on Fabric.- React Native Web support, including CSS shadow strings/arrays, DOM refs, SSR, and hydration.
- R8/ProGuard consumer rules, applied automatically.
- Separate Paper, Fabric, and Web examples.
🛠 Fixed
- Resetting Android shadow radius now clears the previous blur.
- Shadow color alpha correctly combines with
shadowOpacity. - Rounded automatic shadows respect the wrapper’s
borderRadius. - Improved Android listener ownership and cleanup.
- Explicit
boxShadowtakes precedence without duplicate legacy shadows.
📦 Modernized
- Upgraded React Native Builder Bob to 0.44.1.
- Updated TypeScript declarations, development tooling, documentation, and CI.
- Android uses the host application’s Gradle plugin.
- Removed the unused iOS native module and obsolete example/tooling.
⚠️ Migration notes
- Box shadows follow the wrapper’s border box; Kotlin shadows follow child transparency. Use
useLegacyShadowwhen retaining the previous appearance matters. - Automatic Android renderer switching can remount children and update refs.
- After upgrading from a pod-linked version, rerun
pod installto remove the old iOS integration. - RN 0.61.5 / Android API 16 compatibility remains unfinished. The Android library defaults to API 21; host minimums still apply.
- iOS native validation remains outstanding. Expo support is not included.
✅ Validation
- Android debug and R8 release builds: RN 0.81.6/Paper and RN 0.88.1/Fabric, with device smoke tests on API 37.
- Web: React Native Web 0.21.4, with Chromium, SSR/hydration, and packed-entry checks.
- 39 unit tests, native property regression tests on both hosts, TS5/TS6 checks, lint, and package builds passed.
RN 0.81.6/Paper requires an application-level inspector keep rule for R8. See the README for details.
Full Changelog: 1.0.3...2.0.0
Full Changelog: 1.0.3...2.0.1