// @flow

import {version} from '../package.json'
import {Platform} from 'react-native'

const platformString = Platform.OS == 'ios' ? 'iOS' : 'Android'
const platformVersion = Platform.getVersion()

const AAO_USER_AGENT = `AllAboutOlaf/${version} (${platformString}/${platformVersion})`

// @flow

import {version} from '../package.json'
import {Platform} from 'react-native'

const aaoVersion = version || 'unknown'
const platformString = Platform.OS == 'ios' ? 'iOS' : 'Android' || 'unknown'
const platformVersion = Platform.version || 'unknown'

export const AAO_USER_AGENT = `AllAboutOlaf/${aaoVersion} (${platformString}/${platformVersion})`

Clean up the version stuff, use more constants
Clean up the version stuff, use more constants
