@scrolia/react-native
Version:
A headless scrollbar component
1 lines • 1.15 kB
Source Map (JSON)
{"version":3,"file":"index.mjs","names":["props: ContainerProps","p: ContainerProps"],"sources":["../../../src/components/container/index.tsx"],"sourcesContent":["\"use client\";\n\nimport type * as React from \"react\";\nimport type { ViewProps } from \"react-native\";\n\nimport { View } from \"react-native\";\n\nimport { useScrollCore } from \"#/contexts/scrollcore\";\nimport { getComponentProps } from \"#/functions/props\";\n\n/** Props for the `Container` component. */\ntype ContainerProps = ViewProps & {\n ref?: React.Ref<View>;\n};\n\n/** Container component. */\nconst Container = (props: ContainerProps): React.JSX.Element => {\n const {\n options: { plugins },\n } = useScrollCore();\n\n const p: ContainerProps = getComponentProps({\n name: \"container\",\n props,\n plugins,\n });\n\n return <View {...p}>{p.children}</View>;\n};\n\nexport type { ContainerProps };\nexport { Container };\n"],"mappings":";;;;;;;;;AAgBA,MAAM,YAAY,CAACA,UAA6C;CAC5D,MAAM,EACF,SAAS,EAAE,SAAS,EACvB,GAAG,eAAe;CAEnB,MAAMC,IAAoB,kBAAkB;EACxC,MAAM;EACN;EACA;CACH,EAAC;AAEF,4BAAQ;EAAK,GAAI;YAAI,EAAE;GAAgB;AAC1C"}