7 lines
342 B
JavaScript
7 lines
342 B
JavaScript
|
import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js'
|
||
|
|
||
|
export default (uiViewClassName, getViewConfig) =>
|
||
|
createReactNativeComponentClass.length >= 2
|
||
|
? createReactNativeComponentClass(uiViewClassName, getViewConfig)
|
||
|
: createReactNativeComponentClass(getViewConfig())
|