Skip to content

Commit

Permalink
Adding support for resource-id.
Browse files Browse the repository at this point in the history
* This closes #9777.
  • Loading branch information
jsdevel committed Sep 16, 2016
1 parent 0c157be commit 738f346
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public void setRenderToHardwareTexture(T view, boolean useHWTexture) {

@ReactProp(name = PROP_TEST_ID)
public void setTestId(T view, String testId) {
view.setId(view.getResources().getIdentifier(testId, "id", view.getContext().getPackageName()));
view.setTag(testId);
}

Expand Down

0 comments on commit 738f346

Please sign in to comment.