[Flow] Properly fix new errors as of Flow v0.10.
This commit is contained in:
parent
dd56ccb9c7
commit
b6e6dae6ba
|
@ -57,6 +57,7 @@ var ToggleAnimatingActivityIndicator = React.createClass({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
exports.displayName = (undefined: ?string);
|
||||||
exports.framework = 'React';
|
exports.framework = 'React';
|
||||||
exports.title = '<ActivityIndicatorIOS>';
|
exports.title = '<ActivityIndicatorIOS>';
|
||||||
exports.description = 'Animated loading indicators.';
|
exports.description = 'Animated loading indicators.';
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*
|
*
|
||||||
* --flow disabled--
|
* @flow
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ var TabBarItemIOS = React.createClass({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillReceiveProps: function(nextProps: { selected: any /* workaround for flow bug */ }) {
|
componentWillReceiveProps: function(nextProps: { selected?: boolean }) {
|
||||||
if (this.state.hasBeenSelected || nextProps.selected) {
|
if (this.state.hasBeenSelected || nextProps.selected) {
|
||||||
this.setState({hasBeenSelected: true});
|
this.setState({hasBeenSelected: true});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue