0.1.3 • Published 4 years ago

react-native-rn-horizontal-list v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

react-native-rn-horizontal-list

React Native Horizontal List

A simple react native horizontal list

Installation

npm install react-native-rn-horizontal-list

or

yarn add react-native-rn-horizontal-list

Usage

import React, { useState, useEffect } from 'react';
import RNHorizontalList from "react-native-rn-horizontal-list";
  
export default () => {
  const [loading, setLoading] = useState(true);
  const [data, setData] = useState([]);

  return (
    <RNHorizontalList
      loading={loading}
      title="New Releases"
      data={data}
    />
  );
}

Props

loading: boolean;
title: string | null;
data: any[];

View Sample

import {HorizontalListExample} from "react-native-rn-horizontal-list";
  
export default () => {
  return (
    <HorizontalListExample />
  );
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT