mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-30 21:49:31 +00:00
fix: Fix static view config validation for RNSVGSvgViewAndroid (#2274)
# Summary As per title, when running an app in bridgless mode the following redbox appears: > StaticViewConfigValidator: Invalid static view config for 'RNSVGSvgViewAndroid'. > > 'validAttributes.borderBlockColor' is missing. > 'validAttributes.borderBlockEndColor' is missing. > 'validAttributes.borderBlockStartColor' is missing. > 'validAttributes.borderEndEndRadius' is missing. > 'validAttributes.borderEndStartRadius' is missing. > 'validAttributes.borderStartEndRadius' is missing. > 'validAttributes.borderStartStartRadius' is missing. ## Test Plan Tested that the redbox is gone. ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | N/A | | Android | ✅ | ## Checklist <!-- Check completed item, when applicable, via: [X] --> - [X] I have tested this on a device and a simulator - [ ] I added documentation in `README.md` - [ ] I updated the typed files (typescript) - [ ] I added a test for the API in the `__tests__` folder --------- Co-authored-by: Jakub Grzywacz <jakub.grzywacz@swmansion.com>
This commit is contained in:
@@ -73,6 +73,13 @@ interface NativeProps extends ViewProps {
|
||||
borderRadius?: Double;
|
||||
borderBottomLeftRadius?: Double;
|
||||
borderTopLeftRadius?: Double;
|
||||
borderBlockColor?: ColorValue;
|
||||
borderBlockEndColor?: ColorValue;
|
||||
borderBlockStartColor?: ColorValue;
|
||||
borderEndEndRadius?: Double;
|
||||
borderEndStartRadius?: Double;
|
||||
borderStartEndRadius?: Double;
|
||||
borderStartStartRadius?: Double;
|
||||
}
|
||||
|
||||
export default codegenNativeComponent<NativeProps>('RNSVGSvgViewAndroid', {
|
||||
|
||||
Reference in New Issue
Block a user