mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-04 22:56:32 +08:00
Fix onPress for TextView containing just RawText
Summary: This diff enables the onPress event for TextViews that render RawText Reviewed By: shergin Differential Revision: D10222183 fbshipit-source-id: 4b6a6ad548286453f7dd3a14a5e4ee453a55b923
This commit is contained in:
committed by
Facebook Github Bot
parent
74a00beeb7
commit
397573ffed
@@ -143,9 +143,7 @@ public class TextLayoutManager {
|
||||
new CustomTextTransformSpan(textAttributes.mTextTransform)));
|
||||
}
|
||||
|
||||
//TODO: add react tag as part of the fragments, react tag is used on Touch events
|
||||
int reactTag = 1;
|
||||
|
||||
int reactTag = fragment.getInt("reactTag");
|
||||
ops.add(new SetSpanOperation(start, end, new ReactTagSpan(reactTag)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user