Skip to content

Commit

Permalink
Move Dimensions import to deconstructed React import for react-native…
Browse files Browse the repository at this point in the history
… 0.14+
  • Loading branch information
Jędrek Kostecki committed Nov 20, 2015
1 parent 7b973f3 commit 1f8643a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import React, {
View,
ScrollView,
TouchableOpacity,
Dimensions,
} from 'react-native'

// Using bare setTimeout, setInterval, setImmediate
Expand All @@ -18,7 +19,6 @@ import React, {
// the component is unmounted, you risk the callback
// throwing an exception.
import TimerMixin from 'react-timer-mixin'
import Dimensions from 'Dimensions'

let { width, height } = Dimensions.get('window')

Expand Down

0 comments on commit 1f8643a

Please sign in to comment.