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 19, 2016
1 parent 19d0429 commit 580888e
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 580888e

Please sign in to comment.