Compare commits

...

2 Commits

Author SHA1 Message Date
xmflsct 886b6d6cf7 Merge branch 'main' into candidate 2022-08-17 14:14:36 +02:00
xmflsct 1620963863 Seems like it is still not using EAS updates?! 2022-08-17 14:14:18 +02:00
1 changed files with 3 additions and 3 deletions

View File

@ -36,14 +36,14 @@ const mapEnvironment = <T = unknown>({
const isDevelopment =
__DEV__ ||
['development'].some(channel => Updates.channel === channel)
['development'].some(channel => (Updates.channel || Updates.releaseChannel) === channel)
const isCandidate = ['candidate'].some(channel =>
Updates.channel === channel
(Updates.channel || Updates.releaseChannel) === channel
)
const isRelease = ['release'].some(channel =>
Updates.channel === channel
(Updates.channel || Updates.releaseChannel) === channel
)
export { mapEnvironment, isDevelopment, isCandidate, isRelease }