Skip to content

Commit

Permalink
Don't set defaultProps for default view manager values
Browse files Browse the repository at this point in the history
Summary:
The Android ViewManager already has disabled set to false by default. When setting it in defaultProps we send it over for every text view, which is unnecessary.

On platforms that don't support disabled this may also cause unnecessary log noise.
Closes facebook#16139

Differential Revision: D5944334

Pulled By: javache

fbshipit-source-id: 54c4b65f345cd284759d01d075522f5aa2f74298
  • Loading branch information
javache authored and facebook-github-bot committed Sep 29, 2017
1 parent a0e88c2 commit e691699
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Libraries/Text/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ const Text = createReactClass({
accessible: true,
allowFontScaling: true,
ellipsizeMode: 'tail',
disabled: false,
};
},
getInitialState: function(): Object {
Expand Down

0 comments on commit e691699

Please sign in to comment.