Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import 'ts-polyfill/lib/es2016-array-include';
import 'ts-polyfill/lib/es2017-object';
import 'ts-polyfill/lib/es2017-string';
import 'ts-polyfill/lib/es2018-async-iterable'; // for-await-of
import 'ts-polyfill/lib/es2018-promise';
import 'ts-polyfill/lib/es2019-array';
import 'ts-polyfill/lib/es2019-object';
import 'ts-polyfill/lib/es2019-string';
import 'ts-polyfill/lib/es2020-string';
import ons from 'onsenui';
if (ons.platform.isIPhoneX()) {
// https://onsen.io/v2/guide/iphonex.html#iphone-x
document.documentElement.setAttribute('onsflag-iphonex-portrait', '');
document.documentElement.setAttribute('onsflag-iphonex-landscape', '');
}
import './vue-project';
calculateItemHeight={() => ons.platform.isAndroid() ? 76 : 45}
/>
import * as ons from 'onsenui';
export const onsPlatform = ons.platform;
calculateItemHeight={() => ons.platform.isAndroid() ? 48 : 44}
/>
import {
Page,
Toolbar,
List,
ListItem,
ListHeader
} from 'react-onsenui';
import PullToRefresh from './PullToRefresh';
import InfiniteScroll from './InfiniteScroll';
import SideMenu from './SideMenu';
import FloatingActionButton from './FloatingActionButton';
import SpeedDials from './SpeedDials';
const initialPlatform = ons.platform.isAndroid() ? 'android' : 'ios';
class Home extends React.Component {
gotoComponent(component, key) {
this.props.navigator.pushPage({comp: component, props: { key }});
}
renderToolbar() {
return (
<div>Home</div>
);
}
render() {
return (