Skip to content

Commit 131c314

Browse files
chukcha-wtfrozele
authored andcommitted
Allow testID to be set to null
passing null as testID works well on iOS so it will be good to support it on Windows instead of just crashing the app
1 parent 4cca098 commit 131c314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactWindows/ReactNative/UIManager/BaseViewManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void SetAccessibilityLiveRegion(TFrameworkElement view, string liveRegion
120120
[ReactProp("testID")]
121121
public void SetTestId(TFrameworkElement view, string testId)
122122
{
123-
AutomationProperties.SetAutomationId(view, testId);
123+
AutomationProperties.SetAutomationId(view, testId ?? "");
124124
}
125125

126126
private static void SetProjectionMatrix(TFrameworkElement view, JArray transforms)

0 commit comments

Comments
 (0)