react-native-laravel-pagination

1.0.1 • Public • Published

react-native-laravel-pagination

Getting Started

yarn add react-native-laravel-pagination

Prerequisites

What things you need to install the software and how to install them

import React, {Component} from 'react';
import {View} from 'react-native';
import Pagination from 'react-native-pagination';
 
class Page extends Component {
    constructor(props){
        super(props);
        this.state = {
            links: {},
            meta: {},
            data: []
        }
    }
    render() {
        const actions = {
            prev: this.getPrevPageData,
            next: this.getNextPageData,
            callback: this.getData,
        }
        return (
            <View>
                <!---->
                <Pagination meta={this.state.meta} links={this.state.links} actions={actions} />
            </View>
        )
    }
}

License

This project is licensed under the MIT License - see the LICENSE.md file for details

/react-native-laravel-pagination/

    Package Sidebar

    Install

    npm i react-native-laravel-pagination

    Weekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    16.2 kB

    Total Files

    8

    Last publish

    Collaborators

    • serifith