[Flow] Properly fix new errors as of Flow v0.10.

This commit is contained in:
Gabe Levi 2015-04-27 15:18:37 -07:00
parent dd56ccb9c7
commit b6e6dae6ba
3 changed files with 3 additions and 2 deletions

View File

@ -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.';

View File

@ -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';

View File

@ -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});
} }