๐Ÿ“ฆ manideepk90 / react-native-hyperswitch-sdk

๐Ÿ“„ AsyncComponent.chunk.bundle.map ยท 1 lines
1{"version":3,"file":"AsyncComponent.chunk.bundle","sources":["/Users/kuntimaddi.manideep/hyperswitch-base/frontend/hyperswitch/RNHyperSwitch/src/AsyncComponent.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\nimport { View, Text, StyleSheet } from 'react-native';\n\nconst AsyncComponent = () => {\n  const [data, setData] = React.useState(0);\n\n  const calculate = async () => {\n    try {\n    const NativeLibDemo = await import(\n      /* webpackChunkName: \"react-native-lib-demo\" */\n      'react-native-lib-demo'\n    );\n    setData(NativeLibDemo.multiply(3, 4));\n    } catch (error) {\n      console.log('Manideep Error loading module:', error);\n    }\n  };\n  useEffect(() => {\n    calculate();\n  }, []);\n  return (\n    <View style={styles.container}>\n      <Text style={styles.text}>The Module return this {data}</Text>\n    </View>\n  );\n};\n\nconst styles = StyleSheet.create({\n  container: {\n    padding: 20,\n    backgroundColor: '#f0f0f0',\n    borderRadius: 10,\n    marginTop: 20,\n    alignItems: 'center',\n  },\n  text: {\n    fontSize: 18,\n    color: '#333',\n  },\n});\n\nexport default AsyncComponent;\n"],"names":["styles","StyleSheet","create","container","padding","backgroundColor","borderRadius","marginTop","alignItems","text","fontSize","color","AsyncComponent","useState","data","setData","React","useEffect","NativeLibDemo","multiply","error","console","log","View","style","Text"],"mappings":"2SAAiC,Q,IACM,OA0BjCA,EAASC,EAAAA,WAAWC,OAAO,CAC/BC,UAAW,CACTC,QAAS,GACTC,gBAAiB,UACjBC,aAAc,GACdC,UAAW,GACXC,WAAY,UAEdC,KAAM,CACJC,SAAU,GACVC,MAAO,UAIX,EAtCuBC,WACrB,MAAM,cAAwBC,SAAS,GAAE,GAAlCC,EAAI,KAAEC,EAAWC,EAAAA,GAgBxB,O,EAHAC,EAAAA,WAAU,W,gBAVR,IACA,IAAMC,QAAsB,mDAI5BH,EAAQG,EAAcC,SAAS,EAAG,GAClC,CAAE,MAAOC,GACPC,QAAQC,IAAI,iCAAkCF,EAChD,CACF,E,EAGA,EAAG,KAED,SAAC,EAAAG,KAAI,CAACC,MAAOxB,EAAOG,U,UAClB,UAAC,EAAAsB,KAAI,CAACD,MAAOxB,EAAOS,K,UAAM,0BAAwBK,MAGxD,C"}