Skip to content

Commit

Permalink
Merge pull request #29 from jeduan/master
Browse files Browse the repository at this point in the history
Splits react-native and react to avoid warnings on >= 0.25
  • Loading branch information
ArnaudRinquin committed May 10, 2016
2 parents 927b30f + 4eec4b6 commit c5195e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions lib/radio-buttons.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
'use strict';
var React = require('react-native');
var React = require('react');
var ReactNative = require('react-native');

const {
Text,
TouchableWithoutFeedback,
View,
} = React;
} = ReactNative;

const propTypes = {
options: React.PropTypes.array.isRequired,
Expand Down
5 changes: 3 additions & 2 deletions lib/segmented-controls.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
'use strict';
import React from 'react-native';
import React from 'react';
import ReactNative from 'react-native';
import RadioButtons from './';

const {
Text,
TouchableWithoutFeedback,
View,
Platform
} = React;
} = ReactNative;

class SegmentedControls extends React.Component {

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"url": "[email protected]:ArnaudRinquin/react-native-radio-buttons.git"
},
"peerDependencies": {
"react-native": ">=0.8.0"
"react-native": ">=0.25.0"
},
"keywords": [
"react-component",
Expand Down

0 comments on commit c5195e7

Please sign in to comment.