How to use react-swipeable-views - 6 common examples

To help you get started, we’ve selected a few react-swipeable-views examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github geosolutions-it / MapStore2 / web / client / product / plugins.js View on Github external
TimelinePlugin: require('../plugins/Timeline'),
        ToolbarPlugin: require('../plugins/Toolbar'),
        TutorialPlugin: require('../plugins/Tutorial'),
        UndoPlugin: require('../plugins/History'),
        UserManagerPlugin: require('../plugins/manager/UserManager'),
        VersionPlugin: require('../plugins/Version'),
        WFSDownloadPlugin: require('../plugins/WFSDownload'),
        WidgetsBuilderPlugin: require('../plugins/WidgetsBuilder'),
        WidgetsPlugin: require('../plugins/Widgets'),
        WidgetsTrayPlugin: require('../plugins/WidgetsTray'),
        ZoomAllPlugin: require('../plugins/ZoomAll'),
        ZoomInPlugin: require('../plugins/ZoomIn'),
        ZoomOutPlugin: require('../plugins/ZoomOut')
    },
    requires: {
        ReactSwipe: require('react-swipeable-views').default,
        SwipeHeader: require('../components/data/identify/SwipeHeader')
    }
};
github geosolutions-it / MapStore2 / web / client / jsapi / plugins.js View on Github external
BurgerMenuPlugin: require('../plugins/BurgerMenu'),
        UndoPlugin: require('../plugins/History'),
        RedoPlugin: require('../plugins/History'),
        MapsPlugin: require('../plugins/Maps'),
        MapSearchPlugin: require('../plugins/MapSearch'),
        LanguagePlugin: require('../plugins/Language'),
        ManagerPlugin: require('../plugins/manager/Manager'),
        RulesManagerPlugin: require('../plugins/manager/RulesManager'),
        ManagerMenuPlugin: require('../plugins/manager/ManagerMenu'),
        SharePlugin: require('../plugins/Share'),
        FullScreenPlugin: require('../plugins/FullScreen'),
        SavePlugin: require('../plugins/Save'),
        SaveAsPlugin: require('../plugins/SaveAs')
    },
    requires: {
        ReactSwipe: require('react-swipeable-views').default,
        SwipeHeader: require('../components/data/identify/SwipeHeader')
    }
};
github geosolutions-it / MapStore2 / web / client / examples / api / plugins.js View on Github external
RedoPlugin: require('../../plugins/History'),
        MapsPlugin: require('../../plugins/Maps'),
        MapSearchPlugin: require('../../plugins/MapSearch'),
        LanguagePlugin: require('../../plugins/Language'),
        ManagerPlugin: require('../../plugins/manager/Manager'),
        ManagerMenuPlugin: require('../../plugins/manager/ManagerMenu'),
        SharePlugin: require('../../plugins/Share'),
        SavePlugin: require('../../plugins/Save'),
        SaveAsPlugin: require('../../plugins/SaveAs'),
        TOCPlugin: require('../../plugins/TOC'),
        BackgroundSelectorPlugin: require('../../plugins/BackgroundSelector'),
        MeasurePlugin: require('../../plugins/Measure'),
        TOCItemsSettingsPlugin: require('../../plugins/TOCItemsSettings')
    },
    requires: {
        ReactSwipe: require('react-swipeable-views').default,
        SwipeHeader: require('../../components/data/identify/SwipeHeader')
    }
};
github chgibb / PHAT / src / req / renderer / components / swipeableViews.ts View on Github external
export const SwipeableViews : any = require("react-swipeable-views").default;
github Asing1001 / movieRater.React / dist / app / components / movieDetailTabs.js View on Github external
return React.createElement(loadingIcon_1.default, { isLoading: loading });
        }
        const movie = helper_1.classifyArticle(movies[0]);
        document.title = `${movie.chineseTitle} | Movie Rater | 電影評分 | PTT | IMDB | YAHOO`;
        document["meta"] = {
            image: movie.posterUrl,
            description: `IMDb:${movie.imdbRating}, Yahoo:${movie.yahooRating}, PTT好雷/普雷/負雷:${movie.goodRateArticles.length}/${movie.normalRateArticles.length}/${movie.badRateArticles.length}`
        };
        return (React.createElement(Paper_1.default, { zDepth: 2 },
            React.createElement(Tabs_1.Tabs, { onChange: this.handleChange.bind(this), value: this.state.slideIndex },
                React.createElement(Tabs_1.Tab, { label: "Detail", value: 0 }),
                React.createElement(Tabs_1.Tab, { label: "Ptt", value: 1 }),
                React.createElement(Tabs_1.Tab, { label: "Summary", value: 2 }),
                movie.schedules.length > 0 && React.createElement(Tabs_1.Tab, { label: "Time", value: 3 })),
            React.createElement("div", { className: "swipeViewWrapper" },
                React.createElement(react_swipeable_views_1.default, { slideStyle: { height: 'calc(100vh - 111px)', paddingBottom: '1em' }, index: this.state.slideIndex, onChangeIndex: this.handleChange.bind(this), threshold: 6 },
                    React.createElement(movieDetail_1.default, { movie: movie }),
                    React.createElement(pttArticles_1.default, { movie: movie }),
                    React.createElement("div", { className: "col-xs-12", style: { paddingTop: '1em' }, dangerouslySetInnerHTML: { __html: movie.summary } }),
                    React.createElement(schedules_1.default, { schedules: movie.schedules })))));
    }
};
github geosolutions-it / MapStore2 / web / client / product / apiPlugins.js View on Github external
DrawerMenuPlugin: require('../plugins/DrawerMenu'),
        FeedbackMaskPlugin: require('../plugins/FeedbackMask'),
        GoFullPlugin: require('../plugins/GoFull'),
        IdentifyPlugin: require('../plugins/Identify'),
        LocatePlugin: require('../plugins/Locate'),
        MapFooterPlugin: require('../plugins/MapFooter'),
        MapLoadingPlugin: require('../plugins/MapLoading'),
        MapPlugin: require('../plugins/Map'),
        OmniBarPlugin: require('../plugins/OmniBar'),
        SearchPlugin: require('../plugins/Search'),
        TOCPlugin: require('../plugins/TOC'),
        ToolbarPlugin: require('../plugins/Toolbar'),
        ZoomAllPlugin: require('../plugins/ZoomAll')
    },
    requires: {
        ReactSwipe: require('react-swipeable-views').default,

        SwipeHeader: require('../components/data/identify/SwipeHeader')
    }
};

react-swipeable-views

A React component for swipeable views

MIT
Latest version published 3 years ago

Package Health Score

62 / 100
Full package analysis

Popular react-swipeable-views functions