Skip to content

Commit

Permalink
Add IS_ANDROID and IS_IOS
Browse files Browse the repository at this point in the history
  • Loading branch information
JDMathew committed Oct 25, 2024
1 parent 6bc7100 commit e1dfb0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/internal/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,7 @@ export {
MINIMUM_TOUCHABLE_SIZE,
} from './utils/minimumTouchableSize';

export { IS_ANDROID, IS_IOS } from './utils/platformHelpers';

// Types
export { type AMAAccessibilityState, type AccessibilityRoles } from './types';
4 changes: 4 additions & 0 deletions packages/internal/src/utils/platformHelpers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { Platform } from 'react-native';

export const IS_IOS = Platform.OS === 'ios';
export const IS_ANDROID = Platform.OS === 'android';

0 comments on commit e1dfb0b

Please sign in to comment.