mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-27 20:45:10 +00:00
Fix createReactNativeComponentClass for RN < 0.50
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js';
|
||||
import createReactNativeComponentClass from '../lib/createReactNativeComponentClass';
|
||||
import {TextPathAttributes} from '../lib/attributes';
|
||||
import extractText from '../lib/extract/extractText';
|
||||
import Shape from './Shape';
|
||||
|
||||
@@ -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