Last active
November 23, 2019 13:06
-
-
Save Frank1234/ab5eacf58a153b606f9c0ed01257e18a to your computer and use it in GitHub Desktop.
Revisions
-
Frank1234 revised this gist
Jun 29, 2018 . No changes.There are no files selected for viewing
-
Frank1234 revised this gist
Jun 29, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const getPlatformTestId = (id: string) => Platform.OS === 'ios' ? {testID: id} : {accessible: true, accessibilityLabel: id}; /** * Adds a testID to the views on Android and iOS in their specific ways. On Android, * this will result in a ContentDescription on Debug builds (and no changes on live builds). */ const setTestID = (id : string) => -
Frank1234 revised this gist
Jun 29, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,13 @@ import {Platform} from 'react-native'; const getPlatformTestId = (id: string) => Platform.OS === 'ios' ? {testID: id} : {accessible: true, accessibilityLabel: id}; /** * Adds a testID to the views on Android and iOS in their specific ways. On android, * this will result in a ContentDescription on Debug builds (and no changes on live builds). */ const setTestID = (id : string) => __DEV__ ? getPlatformTestId(id) : null; export default setTestID; -
Frank1234 created this gist
Jun 29, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ import {Platform} from 'react-native'; const getPlatformTestId = (id?: ?string) => Platform.OS === 'ios' ? {testID: id} : {accessible: true, accessibilityLabel: id}; /** * Adds a testID to the views on Android and iOS in their specific ways. On android, * this will result in a ContentDescription on Debug builds (and no changes on live builds). */ const setTestID = (id? : ?string) => __DEV__ ? getPlatformTestId(id) : null; export default setTestID;