You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
2.3 KiB
1 line
2.3 KiB
{"ast":null,"code":"import * as React from 'react';\nimport Appearance from \"../Appearance\";\nexport default function useColorScheme() {\n var _React$useState = React.useState(Appearance.getColorScheme()),\n colorScheme = _React$useState[0],\n setColorScheme = _React$useState[1];\n React.useEffect(function () {\n function listener(appearance) {\n setColorScheme(appearance.colorScheme);\n }\n var _Appearance$addChange = Appearance.addChangeListener(listener),\n remove = _Appearance$addChange.remove;\n return remove;\n });\n return colorScheme;\n}","map":{"version":3,"names":["React","Appearance","useColorScheme","_React$useState","useState","getColorScheme","colorScheme","setColorScheme","useEffect","listener","appearance","_Appearance$addChange","addChangeListener","remove"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/node_modules/react-native-web/dist/exports/useColorScheme/index.js"],"sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport * as React from 'react';\nimport Appearance from '../Appearance';\nexport default function useColorScheme() {\n var _React$useState = React.useState(Appearance.getColorScheme()),\n colorScheme = _React$useState[0],\n setColorScheme = _React$useState[1];\n\n React.useEffect(() => {\n function listener(appearance) {\n setColorScheme(appearance.colorScheme);\n }\n\n var _Appearance$addChange = Appearance.addChangeListener(listener),\n remove = _Appearance$addChange.remove;\n\n return remove;\n });\n return colorScheme;\n}"],"mappings":"AASA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU;AACjB,eAAe,SAASC,cAAc,GAAG;EACvC,IAAIC,eAAe,GAAGH,KAAK,CAACI,QAAQ,CAACH,UAAU,CAACI,cAAc,EAAE,CAAC;IAC7DC,WAAW,GAAGH,eAAe,CAAC,CAAC,CAAC;IAChCI,cAAc,GAAGJ,eAAe,CAAC,CAAC,CAAC;EAEvCH,KAAK,CAACQ,SAAS,CAAC,YAAM;IACpB,SAASC,QAAQ,CAACC,UAAU,EAAE;MAC5BH,cAAc,CAACG,UAAU,CAACJ,WAAW,CAAC;IACxC;IAEA,IAAIK,qBAAqB,GAAGV,UAAU,CAACW,iBAAiB,CAACH,QAAQ,CAAC;MAC9DI,MAAM,GAAGF,qBAAqB,CAACE,MAAM;IAEzC,OAAOA,MAAM;EACf,CAAC,CAAC;EACF,OAAOP,WAAW;AACpB"},"metadata":{},"sourceType":"module"} |