Bluesky app fork with some witchin' additions 馃挮
witchsky.app
bluesky
fork
client
1import * as Device from 'expo-device'
2
3import * as env from '#/env'
4
5export const FALLBACK_ANDROID = 'Android'
6export const FALLBACK_IOS = 'iOS'
7export const FALLBACK_WEB = 'Web'
8
9export function getDeviceName(): string {
10 const deviceName = Device.deviceName
11 if (env.IS_ANDROID) {
12 return deviceName || FALLBACK_ANDROID
13 } else if (env.IS_IOS) {
14 return deviceName || FALLBACK_IOS
15 } else {
16 return FALLBACK_WEB // could append browser info here
17 }
18}