Skip to content

Commit

Permalink
Use 'Animated.View.propTypes' to avoid warnings.
Browse files Browse the repository at this point in the history
The propTypes Validation must be based on `Animated.View.propTypes` instead of just `View.propTypes` 
otherwise a Warning is displayed when passing Animated values to TabBar.
  • Loading branch information
alfonsodev committed Apr 3, 2016
1 parent 0a0a86f commit 1960321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TabBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Layout from './Layout';

export default class TabBar extends React.Component {
static propTypes = {
...View.propTypes,
...Animated.View.propTypes,
shadowStyle: View.propTypes.style,
};

Expand Down

0 comments on commit 1960321

Please sign in to comment.