react-native-rn-horizontal-list
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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

Package Sidebar

Install

npm i react-native-rn-horizontal-list

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

526 kB

Total Files

68

Last publish

Collaborators

  • alanyong91