Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify platform checks #4594

Merged
merged 1 commit into from
Jun 21, 2023
Merged

Unify platform checks #4594

merged 1 commit into from
Jun 21, 2023

Conversation

tomekzaw
Copy link
Member

Summary

This PR replaces direct platform checks such as Platform.OS === 'android' or process.env.JEST_WORKER_ID with functions from PlatformChecker.ts (or captured constants when used inside worklets).

Test plan

@tomekzaw tomekzaw requested a review from piaskowyk June 20, 2023 13:05
@tomekzaw tomekzaw changed the title Improve platform checks Unify platform checks Jun 20, 2023
@tomekzaw tomekzaw added this pull request to the merge queue Jun 21, 2023
Merged via the queue into main with commit 74e5f1a Jun 21, 2023
@tomekzaw tomekzaw deleted the @tomekzaw/improve-platform-checks branch June 21, 2023 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants