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.4 KiB

{"ast":null,"code":"import Platform from \"react-native-web/dist/exports/Platform\";\nvar EXPERIMENTAL_WEB_IMPLEMENTATION = false;\nvar getWasCalled = false;\nexport function enableExperimentalWebImplementation() {\n var shouldEnable = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n if (Platform.OS !== 'web' || EXPERIMENTAL_WEB_IMPLEMENTATION === shouldEnable) {\n return;\n }\n if (getWasCalled) {\n console.error('Some parts of this application have already started using old gesture handler implementation. No changes will be applied. You can try enabling new implementation earlier.');\n return;\n }\n EXPERIMENTAL_WEB_IMPLEMENTATION = shouldEnable;\n}\nexport function isExperimentalWebImplementationEnabled() {\n getWasCalled = true;\n return EXPERIMENTAL_WEB_IMPLEMENTATION;\n}","map":{"version":3,"mappings":";AAEA,IAAIA,+BAA+B,GAAG,KAAtC;AACA,IAAIC,YAAY,GAAG,KAAnB;AAEA,OAAO,SAASC,mCAAT,GAAwE;EAAA,IAA3BC,YAAY,uEAAG,IAA5D;EACL,IACEC,QAAQ,CAACC,EAAT,KAAgB,KAAhB,IACAL,+BAA+B,KAAKG,YAFtC,EAGE;IACA;EACD;EAED,IAAIF,YAAJ,EAAkB;IAChBK,OAAO,CAACC,KAAR,CACE,4KADF;IAGA;EACD;EAEDP,+BAA+B,GAAGG,YAAlC;AACD;AAED,OAAO,SAASK,sCAAT,GAA2D;EAChEP,YAAY,GAAG,IAAf;EACA,OAAOD,+BAAP;AACD","names":["EXPERIMENTAL_WEB_IMPLEMENTATION","getWasCalled","enableExperimentalWebImplementation","shouldEnable","Platform","OS","console","error","isExperimentalWebImplementationEnabled"],"sources":["/Users/mathildejean/Documents/BUT/LaSuperMeteo/LaSuperMeteo/iut-expo-starter/node_modules/react-native-gesture-handler/lib/module/EnableExperimentalWebImplementation.ts"],"sourcesContent":["import { Platform } from 'react-native';\n\nlet EXPERIMENTAL_WEB_IMPLEMENTATION = false;\nlet getWasCalled = false;\n\nexport function enableExperimentalWebImplementation(shouldEnable = true): void {\n if (\n Platform.OS !== 'web' ||\n EXPERIMENTAL_WEB_IMPLEMENTATION === shouldEnable\n ) {\n return;\n }\n\n if (getWasCalled) {\n console.error(\n 'Some parts of this application have already started using old gesture handler implementation. No changes will be applied. You can try enabling new implementation earlier.'\n );\n return;\n }\n\n EXPERIMENTAL_WEB_IMPLEMENTATION = shouldEnable;\n}\n\nexport function isExperimentalWebImplementationEnabled(): boolean {\n getWasCalled = true;\n return EXPERIMENTAL_WEB_IMPLEMENTATION;\n}\n"]},"metadata":{},"sourceType":"module","externalDependencies":[]}