0.2.1 • Published 6 years ago

react-native-hiddenflatlist v0.2.1

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

you can use yarn or npm

    npm install react-native-hiddenFlatList

or

    yarn add react-native-hiddenFlatList

alt text

/**
 * @flow
 */

import React, { Component } from 'react';
import { StyleSheet, Text, View, TouchableOpacity } from 'react-native';
import HiddenFlatlist from 'react-native-hiddenFlatList';
import { textStyle } from 'src/utils/styles';

type Props = {};

export default class App extends Component<Props> {
  renderItem = ({ item }) => (
    <View style={{ flex: 1 }}>
        <Text 
            style={{
                fontSize: 20,
                color: '#fff'
            }}
        >
            {item}
        </Text>
    </View>
  );

  render() {
    return (
      <View style={{flex:1}}>
          <HiddenFlatlist
            ref={ref => (this.list = ref)}
            data={['HaHa', '12312412', 'gwhwhdfns', 'hfndfnewr']}
            keyExtractor={item => item}
            renderItem={this.renderItem}
            defaultValue={false}
            title={'HiddenList'}
            titleStyle={{
              backgroundColor: '#000034',
              borderTopWidth: 1,
              borderBottomWidth: 1,
              borderTopColor: '#fff',
              borderBottomColor: '#fff',
            }}
          />
      </View>
    );
  }
}
0.2.1

6 years ago

0.2.0

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago