Permalink
Browse files

Warning: bind(): You are binding a component method to the component

Summary:
Warning: bind(): You are binding a component method to the component.
React does this for you automatically in a high-performance way, so you can safely remove this call. See TouchableOpacity
Closes #10349

Differential Revision: D4008552

Pulled By: javache

fbshipit-source-id: d98fe9a0d694dee74ea872e51b02fbd75a133e43
  • Loading branch information...
1 parent d91a5c4 commit ddb1e44b4358ff87c67f1411cdad6e66e850c8c9 @leeight leeight committed with Facebook Github Bot Oct 12, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 Libraries/Components/Touchable/Touchable.js
@@ -571,7 +571,7 @@ var TouchableMixin = {
return;
}
- UIManager.measure(tag, this._handleQueryLayout.bind(this));
+ UIManager.measure(tag, this._handleQueryLayout);
},
_handleQueryLayout: function(l, t, w, h, globalX, globalY) {

0 comments on commit ddb1e44

Please sign in to comment.