react-native-timeline-feed
v2.0.0
Published
Timeline component for React Native
Downloads
122
Maintainers
Readme
React Native Timeline feed
Highly customizable Timeline component for React Native (Android and iOS) and works with Expo.
Migrating from react-native-timeline-listview
If you're coming from react-native-listview
and simply want to use a FlatList
instead, then use the latest v1.x.x package instead. It'll be the path of least resistance.
Demo
A demo can be found on expo.
Getting Started
yarn add react-native-timeline-feed
or your favorite way...
You'll need the following imports
import Timeline from 'react-native-timeline-feed';
// only needed if you're going to select a non-default preset
import { Preset } from 'react-native-timeline-feed/lib/Types';
Minimum
<Timeline data={data} />
or one of the presets
<Timeline
data={data}
preset={Preset.SingleColumnRight} />
Configuration
Note. Color/Width specificity is as follows (highest priority to lowest): ItemProps -> TimelineProps -> defaults.