one
Version:
One is a new React Framework that makes Vite serve both native and web.
30 lines (29 loc) • 657 B
JavaScript
import { StyleSheet, View } from "react-native-web";
import { ViewSlot } from "./common.mjs";
import { jsx } from "react/jsx-runtime";
function TabList({
asChild,
style,
...props
}) {
const Comp = asChild ? ViewSlot : View;
return /* @__PURE__ */jsx(Comp, {
style: [styles.tabList, style],
...props
});
}
function isTabList(child) {
return child.type === TabList;
}
const styles = StyleSheet.create({
tabList: {
flexDirection: "row",
justifyContent: "space-between"
},
tabTrigger: {
flexDirection: "row",
justifyContent: "space-between"
}
});
export { TabList, isTabList };
//# sourceMappingURL=TabList.mjs.map