Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not crash when borderRadius is set on Android (#2415)
# Summary Fixes #2462 Currently, on Android, when `borderRadius` style is applied to a `Svg` component an error occurs, stating `Cannot cast Double to Float` This PR updates the codegen types, changing them from Double to Dynamic, aligning with the implementation with the ViewProps. ## Test ### Tested on - [x] [email protected] - [x] [email protected] - [x] [email protected] - [x] [email protected] ### Test case ```jsx <Svg width="60" height="60" viewBox="0 0 24 24" style={{ borderRadius: 16.2, borderTopLeftRadius: 16.2, borderBottomRightRadius: 16.2, borderStartStartRadius: 16.2, borderStartEndRadius: 16.2, borderTopRightRadius: 16.2, borderBottomLeftRadius: 16.2, borderTopStartRadius: 16.2, borderTopEndRadius: 16.2, borderBottomStartRadius: 16.2, borderBottomEndRadius: 16.2, borderEndEndRadius: 16.2, borderEndStartRadius: 16.2, }}> <Rect x="0" y="0" width="24" height="24" fill="red" /> </Svg> ``` ## Compatibility | OS | Implemented | | ------- | :---------: | | Android | ✅ |
- Loading branch information