platform.tsx 240 B

123456789101112
  1. export function isNativePlatform(platform: string | undefined): boolean {
  2. switch (platform) {
  3. case 'cocoa':
  4. case 'objc':
  5. case 'native':
  6. case 'swift':
  7. case 'c':
  8. return true;
  9. default:
  10. return false;
  11. }
  12. }