mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 22:05:14 +00:00
Fix createReactNativeComponentClass for RN < 0.50
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user