JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 139
  • Score
    100M100P100Q54929F
  • License ISC

A simple component that makes tabs animatable.

Package Exports

  • react-native-swipe-tabs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-swipe-tabs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-native-swipe-tabs

A simple component that makes tabs animatable.

Demo

Works on both IOS and Android.

Installation

Just run npm install --save-exact react-native-swipe-tabs

Usage

Let us suppose there are some screens "Favourites", "Playlists", "Tracks", "Folders"

import SwipeableTabs from "react-native-swipe-tabs"

class Home extends React.Component<any, any>{

    constructor(props: any) {
        super(props)
        this.state = {
            selectedIndex: 0
        }
    }
    
    render() {
        return (
            <SwipeableTabs
                onSwipe={x => this.setState({ selectedIndex: x })}
                selectedIndex={this.state.selection}
            >
                <Favourites />
                <Playlists/>
                <Tracks/>
                <Folders/>
            </SwipeableTabs>)
    }
}

Misc

Currently I am not allowing pull requests. If you like to suggest a feature, email me to sheharyar.fast@gmail.com. I will get back to you as soon as I can.