Make createReactNativeComponentClass backward compatible with react native < 0.50

This commit is contained in:
Bruno Lemos
2017-10-27 20:38:04 -02:00
parent 3db9489652
commit 4a71c7f932
16 changed files with 21 additions and 15 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import React from 'react';
import './Path'; // must import Path first, don`t know why. without this will throw an `Super expression must either be null or a function, not undefined`
import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js';
import createReactNativeComponentClass from '../lib/createReactNativeComponentClass';
import {pathProps, numberProp} from '../lib/props';
import {RectAttributes} from '../lib/attributes';
import extractProps from '../lib/extract/extractProps';