Skip to content

Commit

Permalink
[ReactNative] Use oss TimerMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
tadeuzagallo committed Mar 24, 2015
1 parent fe0527a commit 57ee9e7
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 119 deletions.
2 changes: 1 addition & 1 deletion Examples/Movies/SearchScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ var {
StyleSheet,
Text,
TextInput,
TimerMixin,
View,
} = React;
var TimerMixin = require('react-timer-mixin');

var MovieCell = require('./MovieCell');
var MovieScreen = require('./MovieScreen');
Expand Down
2 changes: 1 addition & 1 deletion Examples/UIExplorer/ActivityIndicatorExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ var React = require('react-native');
var {
ActivityIndicatorIOS,
StyleSheet,
TimerMixin,
View,
} = React;
var TimerMixin = require('react-timer-mixin');

var ToggleAnimatingActivityIndicator = React.createClass({
mixins: [TimerMixin],
Expand Down
2 changes: 1 addition & 1 deletion Examples/UIExplorer/TimerExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ var {
AlertIOS,
StyleSheet,
Text,
TimerMixin,
TouchableHighlight,
View,
} = React;
var TimerMixin = require('react-timer-mixin');

var Button = React.createClass({
render: function() {
Expand Down
2 changes: 1 addition & 1 deletion IntegrationTests/TimersTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ var React = require('react-native');
var {
StyleSheet,
Text,
TimerMixin,
View,
} = React;
var TimerMixin = require('react-timer-mixin');

var TimersTest = React.createClass({
mixins: [TimerMixin],
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Components/TextInput/TextInput.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var ReactIOSViewAttributes = require('ReactIOSViewAttributes');
var StyleSheet = require('StyleSheet');
var Text = require('Text');
var TextInputState = require('TextInputState');
var TimerMixin = require('TimerMixin');
var TimerMixin = require('react-timer-mixin');
var TouchableWithoutFeedback = require('TouchableWithoutFeedback');

var createReactIOSNativeComponentClass = require('createReactIOSNativeComponentClass');
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Components/Touchable/TouchableHighlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var NativeMethodsMixin = require('NativeMethodsMixin');
var React = require('React');
var ReactIOSViewAttributes = require('ReactIOSViewAttributes');
var StyleSheet = require('StyleSheet');
var TimerMixin = require('TimerMixin');
var TimerMixin = require('react-timer-mixin');
var Touchable = require('Touchable');
var TouchableWithoutFeedback = require('TouchableWithoutFeedback');
var View = require('View');
Expand Down
2 changes: 1 addition & 1 deletion Libraries/CustomComponents/ListView/ListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var RCTUIManager = require('NativeModules').UIManager;
var ScrollView = require('ScrollView');
var ScrollResponder = require('ScrollResponder');
var StaticRenderer = require('StaticRenderer');
var TimerMixin = require('TimerMixin');
var TimerMixin = require('react-timer-mixin');

var logError = require('logError');
var merge = require('merge');
Expand Down
109 changes: 0 additions & 109 deletions Libraries/Utilities/TimerMixin.js

This file was deleted.

1 change: 0 additions & 1 deletion Libraries/react-native/react-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ var ReactNative = Object.assign(Object.create(require('React')), {
PanResponder: require('PanResponder'),
StatusBarIOS: require('StatusBarIOS'),
StyleSheet: require('StyleSheet'),
TimerMixin: require('TimerMixin'),
VibrationIOS: require('VibrationIOS'),

// Plugins
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@
"dependencies": {
"connect": "2.8.3",
"jstransform": "10.0.1",
"react-timer-mixin": "^0.13.1",
"react-tools": "0.13.0-rc2",
"source-map": "0.1.31",
"stacktrace-parser": "0.1.1",
"react-tools": "0.13.0-rc2"
"stacktrace-parser": "0.1.1"
},
"devDependencies": {
"ws": "0.4.31",
Expand Down

0 comments on commit 57ee9e7

Please sign in to comment.