react-web-native-sketch
Version:
[TODO: We need an overview of how this can be used via npm vs as a local package]
29 lines • 866 B
JavaScript
// import * as React from 'react';
// import { render, View, Text, Document } from 'react-sketchapp';
// import {renderComponent} from "./renderAll";
// import {getWindowWidth} from "../primitives/platform/platform";
//
// const Document2 = () => (
// <Document>
// {renderComponent( "test", () =>
// <View
// name="abc"
// style={{
// backgroundColor: "red",
// position: "absolute",
// top: 0,
// }}
// >
// <Text>
// {getWindowWidth() > 1000 ? "DESKTOP": "MOBILE"}
// </Text>
// </View>
// )}
// </Document>
// );
//
// export default () => {
//
// render(<Document2 />, context.document.currentPage());
// };
//# sourceMappingURL=all.js.map