one
Version:
One is a React framework for web, iOS, and Android apps.
14 lines (11 loc) • 430 B
JavaScript
import { StyleSheet } from "react-native-web";
function viewportStyle(style) {
const flat = StyleSheet.flatten(style);
const hasSize = flat?.height != null || flat?.aspectRatio != null || flat?.flex != null || flat?.flexBasis != null || flat?.flexGrow != null;
return [hasSize ? { alignSelf: "stretch" } : {
flex: 1,
alignSelf: "stretch"
}, style];
}
export { viewportStyle };
//# sourceMappingURL=viewportStyle.mjs.map