Skip to content
This repository was archived by the owner on Mar 15, 2025. It is now read-only.

Commit 3459cc9

Browse files
committed
Merge pull request #4 from sylvainbaronnet/master
update import for RN 0.25
2 parents 0f22184 + 7c99d91 commit 3459cc9

File tree

3 files changed

+6
-19
lines changed

3 files changed

+6
-19
lines changed

src/components/Column.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
'use strict';
22

3-
import React from 'react-native';
3+
import React, {Component, PropTypes} from 'react';
44
import {screenSize} from '../lib/ScreenSize';
55
import {isHidden, getComponentWidth, getComponentOffset} from '../lib/helpers';
6-
7-
var {
8-
Component,
9-
PropTypes,
10-
View,
11-
} = React;
6+
import {View} from 'react-native';
127

138
export default class Column extends Component {
149
render(){

src/components/Row.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
'use strict';
22

3-
import React from 'react-native';
3+
import React, {Component, PropTypes} from 'react';
44
import {screenSize} from '../lib/ScreenSize';
55
import {isHidden} from '../lib/helpers';
6-
7-
var {
8-
Component,
9-
PropTypes,
10-
View,
11-
} = React;
6+
import {View} from 'react-native';
127

138
export default class Row extends Component {
149
constructor(props){

src/lib/ScreenSize.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
'use strict';
22

3-
import React from 'react-native';
4-
5-
var {
6-
Dimensions
7-
} = React;
3+
import React from 'react';
4+
import { Dimensions } from 'react-native';
85

96
function setScreenSize(){
107
const SCREEN_WIDTH = Dimensions.get('window').width;

0 commit comments

Comments
 (0)