We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
internal
1 parent 13ad2eb commit 418ef4aCopy full SHA for 418ef4a
2 files changed
packages/internal/src/index.ts
@@ -59,5 +59,7 @@ export {
59
MINIMUM_TOUCHABLE_SIZE,
60
} from './utils/minimumTouchableSize';
61
62
+export { IS_ANDROID, IS_IOS } from './utils/platformHelpers';
63
+
64
// Types
65
export { type AMAAccessibilityState, type AccessibilityRoles } from './types';
packages/internal/src/utils/platformHelpers.ts
@@ -0,0 +1,4 @@
1
+import { Platform } from 'react-native';
2
3
+export const IS_IOS = Platform.OS === 'ios';
4
+export const IS_ANDROID = Platform.OS === 'android';
0 commit comments