Fix createReactNativeComponentClass for RN < 0.50

This commit is contained in:
Bruno Lemos
2017-11-07 17:48:47 -02:00
parent 5b02849865
commit ebae6480ac
2 changed files with 2 additions and 2 deletions

View File

@@ -3,4 +3,4 @@ import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shi
export default (uiViewClassName, getViewConfig) =>
createReactNativeComponentClass.length >= 2
? createReactNativeComponentClass(uiViewClassName, getViewConfig)
: createReactNativeComponentClass(getViewConfig)
: createReactNativeComponentClass(getViewConfig())