@@ -12,7 +12,6 @@ import {
1212 deepDiffer ,
1313 flattenStyle ,
1414} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface' ;
15- import isArray from 'shared/isArray' ;
1615
1716import type { AttributeConfiguration } from './ReactNativeTypes' ;
1817
@@ -52,7 +51,7 @@ function restoreDeletedValuesInNestedArray(
5251 node : NestedNode ,
5352 validAttributes : AttributeConfiguration ,
5453) {
55- if ( isArray ( node ) ) {
54+ if ( Array . isArray ( node ) ) {
5655 let i = node . length ;
5756 while ( i -- && removedKeyCount > 0 ) {
5857 restoreDeletedValuesInNestedArray (
@@ -164,12 +163,12 @@ function diffNestedProperty(
164163 return updatePayload ;
165164 }
166165
167- if ( ! isArray ( prevProp ) && ! isArray ( nextProp ) ) {
166+ if ( ! Array . isArray ( prevProp ) && ! Array . isArray ( nextProp ) ) {
168167 // Both are leaves, we can diff the leaves.
169168 return diffProperties ( updatePayload , prevProp , nextProp , validAttributes ) ;
170169 }
171170
172- if ( isArray ( prevProp ) && isArray ( nextProp ) ) {
171+ if ( Array . isArray ( prevProp ) && Array . isArray ( nextProp ) ) {
173172 // Both are arrays, we can diff the arrays.
174173 return diffNestedArrayProperty (
175174 updatePayload ,
@@ -179,7 +178,7 @@ function diffNestedProperty(
179178 ) ;
180179 }
181180
182- if ( isArray ( prevProp ) ) {
181+ if ( Array . isArray ( prevProp ) ) {
183182 return diffProperties (
184183 updatePayload ,
185184 // $FlowFixMe - We know that this is always an object when the input is.
@@ -213,7 +212,7 @@ function addNestedProperty(
213212 return updatePayload ;
214213 }
215214
216- if ( ! isArray ( nextProp ) ) {
215+ if ( ! Array . isArray ( nextProp ) ) {
217216 // Add each property of the leaf.
218217 return addProperties ( updatePayload , nextProp , validAttributes ) ;
219218 }
@@ -243,7 +242,7 @@ function clearNestedProperty(
243242 return updatePayload ;
244243 }
245244
246- if ( ! isArray ( prevProp ) ) {
245+ if ( ! Array . isArray ( prevProp ) ) {
247246 // Add each property of the leaf.
248247 return clearProperties ( updatePayload , prevProp , validAttributes ) ;
249248 }
0 commit comments