UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

8 lines (7 loc) • 4.62 kB
{ "version": 3, "sources": ["src/platform/specs/OneNativeArrangementViewNativeComponent.ts"], "sourcesContent": ["import type { ProcessedColorValue, ViewProps } from 'react-native';\nimport type { DirectEventHandler, Double, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';\nimport codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';\ntype OneNativeStyleNative = Readonly<{\n fontSize?: WithDefault<Double, -1>;\n fontWeight?: string;\n fontDesign?: string;\n textStyle?: string;\n foregroundStyle?: ProcessedColorValue;\n tint?: ProcessedColorValue;\n background?: ProcessedColorValue;\n padding?: WithDefault<Double, -1>;\n paddingTop?: WithDefault<Double, -1>;\n paddingLeading?: WithDefault<Double, -1>;\n paddingBottom?: WithDefault<Double, -1>;\n paddingTrailing?: WithDefault<Double, -1>;\n width?: WithDefault<Double, -1>;\n height?: WithDefault<Double, -1>;\n minWidth?: WithDefault<Double, -1>;\n idealWidth?: WithDefault<Double, -1>;\n maxWidth?: WithDefault<Double, -1>;\n minHeight?: WithDefault<Double, -1>;\n idealHeight?: WithDefault<Double, -1>;\n maxHeight?: WithDefault<Double, -1>;\n cornerRadius?: WithDefault<Double, -1>;\n opacity?: WithDefault<Double, -1>;\n borderColor?: ProcessedColorValue;\n borderWidth?: WithDefault<Double, -1>;\n glassEffect?: string;\n glassEffectInteractive?: boolean;\n glassEffectTint?: ProcessedColorValue;\n glassEffectShape?: string;\n material?: string;\n sdkModifiers?: string;\n}>;\ninterface NativeProps extends ViewProps {\n arrangementViewStyle?: string;\n splitAxes?: string;\n overlayAxes?: string;\n splitRatio?: WithDefault<Double, -1>;\n splitMinHorizontal?: WithDefault<Double, -1>;\n splitIdealHorizontal?: WithDefault<Double, -1>;\n splitMaxHorizontal?: WithDefault<Double, -1>;\n splitMinVertical?: WithDefault<Double, -1>;\n splitIdealVertical?: WithDefault<Double, -1>;\n splitMaxVertical?: WithDefault<Double, -1>;\n splitMinWidth?: WithDefault<Double, -1>;\n splitIdealWidth?: WithDefault<Double, -1>;\n splitMaxWidth?: WithDefault<Double, -1>;\n splitMinHeight?: WithDefault<Double, -1>;\n splitIdealHeight?: WithDefault<Double, -1>;\n splitMaxHeight?: WithDefault<Double, -1>;\n splitFixedHorizontal?: boolean;\n splitFixedVertical?: boolean;\n overlayEdge?: string;\n swiftStyle?: OneNativeStyleNative;\n onNativeSDKEvent?: DirectEventHandler<Readonly<{\n name: string;\n value: string;\n }>>;\n}\nconst NativeComponentRegistry = require('react-native/Libraries/NativeComponent/NativeComponentRegistry');\nconst {\n ConditionallyIgnoredEventHandlers\n} = require('react-native/Libraries/NativeComponent/ViewConfigIgnore');\nlet nativeComponentName = 'OneNativeArrangementView';\nexport const __INTERNAL_VIEW_CONFIG = {\n uiViewClassName: \"OneNativeArrangementView\",\n directEventTypes: {\n topNativeSDKEvent: {\n registrationName: \"onNativeSDKEvent\"\n }\n },\n validAttributes: {\n arrangementViewStyle: true,\n splitAxes: true,\n overlayAxes: true,\n splitRatio: true,\n splitMinHorizontal: true,\n splitIdealHorizontal: true,\n splitMaxHorizontal: true,\n splitMinVertical: true,\n splitIdealVertical: true,\n splitMaxVertical: true,\n splitMinWidth: true,\n splitIdealWidth: true,\n splitMaxWidth: true,\n splitMinHeight: true,\n splitIdealHeight: true,\n splitMaxHeight: true,\n splitFixedHorizontal: true,\n splitFixedVertical: true,\n overlayEdge: true,\n swiftStyle: true,\n ...ConditionallyIgnoredEventHandlers({\n onNativeSDKEvent: true\n })\n }\n};\nexport default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);"], "mappings": "AA6DA,MAAMA,IAA0B,QAAQ,gEAAgE;AACxG,MAAM;AAAA,EACJ,mCAAAC;AACF,IAAI,QAAQ,yDAAyD;AACrE,IAAIC,IAAsB;AACnB,MAAMC,IAAyB;AAAA,EACpC,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,IAChB,mBAAmB;AAAA,MACjB,kBAAkB;AAAA,IACpB;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,sBAAsB;AAAA,IACtB,WAAW;AAAA,IACX,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,oBAAoB;AAAA,IACpB,sBAAsB;AAAA,IACtB,oBAAoB;AAAA,IACpB,kBAAkB;AAAA,IAClB,oBAAoB;AAAA,IACpB,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,iBAAiB;AAAA,IACjB,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,IAChB,sBAAsB;AAAA,IACtB,oBAAoB;AAAA,IACpB,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,GAAGF,EAAkC;AAAA,MACnC,kBAAkB;AAAA,IACpB,CAAC;AAAA,EACH;AACF;AACA,IAAOG,IAAQJ,EAAwB,IAAIE,GAAqB,MAAMC,CAAsB;", "names": ["NativeComponentRegistry", "ConditionallyIgnoredEventHandlers", "nativeComponentName", "__INTERNAL_VIEW_CONFIG", "OneNativeArrangementViewNativeComponent_default"] }