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

View File

@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Image } from 'react-native';
import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js';
import createReactNativeComponentClass from '../lib/createReactNativeComponentClass';
import {ImageAttributes} from '../lib/attributes';
import {numberProp, touchableProps, responderProps} from '../lib/props';
import Shape from './Shape';