Move /platform/detection vars into /env (#9707)
* Add platform vars to env * Replace /platform/detection with /env
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
import {AccessibilityInfo} from 'react-native'
|
||||
|
||||
import {isWeb} from '#/platform/detection'
|
||||
import {IS_WEB} from '#/env'
|
||||
import {PlatformInfo} from '../../modules/expo-bluesky-swiss-army'
|
||||
|
||||
const Context = React.createContext({
|
||||
@@ -58,7 +58,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
|
||||
*
|
||||
* @see https://github.com/necolas/react-native-web/discussions/2072
|
||||
*/
|
||||
screenReaderEnabled: isWeb ? false : screenReaderEnabled,
|
||||
screenReaderEnabled: IS_WEB ? false : screenReaderEnabled,
|
||||
}
|
||||
}, [reduceMotionEnabled, screenReaderEnabled])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user