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:
David Vacca
2018-10-09 16:30:11 -07:00
committed by Facebook Github Bot
parent 74a00beeb7
commit 397573ffed
2 changed files with 7 additions and 6 deletions

View File

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