diff --git a/elements/TextPath.js b/elements/TextPath.js index 7e1bebc1..b94dbb32 100644 --- a/elements/TextPath.js +++ b/elements/TextPath.js @@ -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'; diff --git a/lib/createReactNativeComponentClass.js b/lib/createReactNativeComponentClass.js index ed566556..296b3a94 100644 --- a/lib/createReactNativeComponentClass.js +++ b/lib/createReactNativeComponentClass.js @@ -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())