@@ -104,14 +104,15 @@ const NativeRenderer = ReactFiberReconciler({
104
104
105
105
commitUpdate (
106
106
instance : Instance ,
107
+ type : string ,
107
108
oldProps : Props ,
108
109
newProps : Props ,
109
110
rootContainerInstance : Object ,
110
111
internalInstanceHandle : Object
111
112
) : void {
112
- precacheFiberNode ( internalInstanceHandle , instance . _nativeTag ) ;
113
+ const viewConfig = ReactNativeViewConfigRegistry . get ( type ) ;
113
114
114
- const viewConfig = ( instance : any ) . viewConfig ;
115
+ precacheFiberNode ( internalInstanceHandle , instance . _nativeTag ) ;
115
116
116
117
const updatePayload = ReactNativeAttributePayload . diff (
117
118
oldProps ,
@@ -157,7 +158,6 @@ const NativeRenderer = ReactFiberReconciler({
157
158
) ;
158
159
159
160
const component = new NativeHostComponent ( tag ) ;
160
- component . viewConfig = viewConfig ;
161
161
162
162
precacheFiberNode ( internalInstanceHandle , tag ) ;
163
163
@@ -185,6 +185,7 @@ const NativeRenderer = ReactFiberReconciler({
185
185
186
186
finalizeInitialChildren (
187
187
parentInstance : Instance ,
188
+ type : string ,
188
189
props : Props ,
189
190
rootContainerInstance : Container ,
190
191
) : void {
@@ -251,13 +252,17 @@ const NativeRenderer = ReactFiberReconciler({
251
252
252
253
prepareUpdate (
253
254
instance : Instance ,
255
+ type : string ,
254
256
oldProps : Props ,
255
257
newProps : Props
256
258
) : boolean {
257
259
return true ;
258
260
} ,
259
261
260
- removeChild ( parentInstance : Instance | Container , child : Instance | TextInstance ) : void {
262
+ removeChild (
263
+ parentInstance : Instance | Container ,
264
+ child : Instance | TextInstance
265
+ ) : void {
261
266
recursivelyUncacheFiberNode ( child ) ;
262
267
263
268
if ( typeof parentInstance === 'number' ) {
@@ -270,7 +275,7 @@ const NativeRenderer = ReactFiberReconciler({
270
275
[ 0 ] , // removeAtIndices
271
276
) ;
272
277
} else {
273
- const children = parentInstance . _children
278
+ const children = parentInstance . _children ;
274
279
const index = children . indexOf ( child ) ;
275
280
276
281
children . splice ( index , 1 ) ;
0 commit comments