@@ -12,73 +12,12 @@ import * as NativeComponentRegistry from '../../NativeComponent/NativeComponentR
12
12
import { type HostComponent } from '../../Renderer/shims/ReactNativeTypes' ;
13
13
import codegenNativeCommands from '../../Utilities/codegenNativeCommands' ;
14
14
import { type ViewProps as Props } from './ViewPropTypes' ;
15
- import Platform from '../../Utilities/Platform' ;
16
-
17
15
import * as React from 'react' ;
18
16
19
- const ViewPartialViewConfig =
20
- Platform . OS === 'android'
21
- ? {
22
- uiViewClassName : 'RCTView' ,
23
- validAttributes : {
24
- // ReactClippingViewManager @ReactProps
25
- removeClippedSubviews : true ,
26
-
27
- // ReactViewManager @ReactProps
28
- accessible : true ,
29
- hasTVPreferredFocus : true ,
30
- nextFocusDown : true ,
31
- nextFocusForward : true ,
32
- nextFocusLeft : true ,
33
- nextFocusRight : true ,
34
- nextFocusUp : true ,
35
-
36
- borderRadius : true ,
37
- borderTopLeftRadius : true ,
38
- borderTopRightRadius : true ,
39
- borderBottomRightRadius : true ,
40
- borderBottomLeftRadius : true ,
41
- borderTopStartRadius : true ,
42
- borderTopEndRadius : true ,
43
- borderBottomStartRadius : true ,
44
- borderBottomEndRadius : true ,
45
-
46
- borderStyle : true ,
47
- hitSlop : true ,
48
- pointerEvents : true ,
49
- nativeBackgroundAndroid : true ,
50
- nativeForegroundAndroid : true ,
51
- needsOffscreenAlphaCompositing : true ,
52
-
53
- borderWidth : true ,
54
- borderLeftWidth : true ,
55
- borderRightWidth : true ,
56
- borderTopWidth : true ,
57
- borderBottomWidth : true ,
58
- borderStartWidth : true ,
59
- borderEndWidth : true ,
60
-
61
- borderColor : { process : require ( '../../StyleSheet/processColor' ) } ,
62
- borderLeftColor : { process : require ( '../../StyleSheet/processColor' ) } ,
63
- borderRightColor : { process : require ( '../../StyleSheet/processColor' ) } ,
64
- borderTopColor : { process : require ( '../../StyleSheet/processColor' ) } ,
65
- borderBottomColor : {
66
- process : require ( '../../StyleSheet/processColor' ) ,
67
- } ,
68
- borderStartColor : { process : require ( '../../StyleSheet/processColor' ) } ,
69
- borderEndColor : { process : require ( '../../StyleSheet/processColor' ) } ,
70
-
71
- focusable : true ,
72
- overflow : true ,
73
- backfaceVisibility : true ,
74
- } ,
75
- }
76
- : {
77
- uiViewClassName : 'RCTView' ,
78
- } ;
79
-
80
17
const ViewNativeComponent : HostComponent < Props > =
81
- NativeComponentRegistry.get< Props > ('RCTView', () => ViewPartialViewConfig ) ;
18
+ NativeComponentRegistry.get< Props > ('RCTView', () => ( {
19
+ uiViewClassName : 'RCTView' ,
20
+ } ) ) ;
82
21
83
22
interface NativeCommands {
84
23
+ hotspotUpdate : (
0 commit comments