1 | {"version":3,"names":["_reactNative","require","_MotionPressable","_nativewind","_createMotionComponent","Motion","exports","_Motion","View","createMotionComponent","styled","Animated","Text","FlatList","Image","ScrollView","SectionList","Pressable","MotionPressable"],"sources":["styled.ts"],"sourcesContent":["import {\n Animated,\n FlatList as RNFlatList,\n Image as RNImage,\n PressableProps,\n ScrollView as RNScrollView,\n SectionList as RNSectionList,\n Text as RNText,\n View as RNView,\n} from 'react-native';\nimport { MotionPressable } from './MotionPressable';\n// @ts-ignore This was there in v2 but not in v4\nimport { styled } from 'nativewind';\nimport { createMotionComponent } from './createMotionComponent';\n\nexport declare type StyledProps = {\n className?: string;\n tw?: string;\n baseClassName?: string;\n baseTw?: string;\n};\n\nexport namespace Motion {\n export const View = createMotionComponent<typeof RNView, StyledProps>(styled(Animated.View));\n export const Text = createMotionComponent<typeof RNText, StyledProps>(styled(Animated.Text));\n export const FlatList = createMotionComponent<typeof RNFlatList, StyledProps>(\n styled(Animated.FlatList) as unknown as typeof RNFlatList\n );\n export const Image = createMotionComponent<typeof RNImage, StyledProps>(styled(Animated.Image));\n export const ScrollView = createMotionComponent<typeof RNScrollView, StyledProps>(styled(Animated.ScrollView));\n export const SectionList = createMotionComponent<typeof RNSectionList, StyledProps>(\n styled(Animated.SectionList) as unknown as typeof RNSectionList\n );\n export const Pressable = styled(MotionPressable) as (props: PressableProps & StyledProps) => JSX.Element;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAUA,IAAAC,gBAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAH,OAAA;AAFA;AAAA,IAAAI,MAAA;AAAAC,OAAA,CAAAD,MAAA,GAAAA,MAAA;AAAA,WAAAE,OAAA;EAYW,MAAMC,IAAI,GAAAD,OAAA,CAAAC,IAAA,GAAG,IAAAC,4CAAqB,EAA6B,IAAAC,kBAAM,EAACC,qBAAQ,CAACH,IAAI,CAAC,CAAC;EACrF,MAAMI,IAAI,GAAAL,OAAA,CAAAK,IAAA,GAAG,IAAAH,4CAAqB,EAA6B,IAAAC,kBAAM,EAACC,qBAAQ,CAACC,IAAI,CAAC,CAAC;EACrF,MAAMC,QAAQ,GAAAN,OAAA,CAAAM,QAAA,GAAG,IAAAJ,4CAAqB,EACzC,IAAAC,kBAAM,EAACC,qBAAQ,CAACE,QAAQ,CAC5B,CAAC;EACM,MAAMC,KAAK,GAAAP,OAAA,CAAAO,KAAA,GAAG,IAAAL,4CAAqB,EAA8B,IAAAC,kBAAM,EAACC,qBAAQ,CAACG,KAAK,CAAC,CAAC;EACxF,MAAMC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,IAAAN,4CAAqB,EAAmC,IAAAC,kBAAM,EAACC,qBAAQ,CAACI,UAAU,CAAC,CAAC;EACvG,MAAMC,WAAW,GAAAT,OAAA,CAAAS,WAAA,GAAG,IAAAP,4CAAqB,EAC5C,IAAAC,kBAAM,EAACC,qBAAQ,CAACK,WAAW,CAC/B,CAAC;EACM,MAAMC,SAAS,GAAAV,OAAA,CAAAU,SAAA,GAAG,IAAAP,kBAAM,EAACQ,gCAAe,CAAyD;AAAC,GAX5Fb,MAAM,KAAAC,OAAA,CAAAD,MAAA,GAANA,MAAM","ignoreList":[]} |