Skip to content

A React-Native Element Generator to generate Components programaticly

Notifications You must be signed in to change notification settings

janlueders/react-native-element-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

react-native-element-generator

Packge which could be used to generate all Kind of React-Native Components and may some usefull Subcomponents like LoadiingModals, Blinking Icons or Text.

Usage

These is an Example how to use the ElementGenerator in functions or in a render function itself.

import { genTouchableOpacityListItem } from './ElementGenerator';

render() {
    return (
        <View style={styles.container}>
            <Loader loading={this.state.loading} />
            <FlatList
                style={{flex:1, width:"100%"}}
                data={this.state.dataSource}
                renderItem={this._renderItem}
                keyExtractor={(item, index) => index.toString()}
            />
        </View>
    );
}

_renderItem = ({item,index}) => {
    return genTouchableOpacityListItem(this._switchToScreen,item,index,"tasks");
};

In the comming Versions it would be possible to generate all Components out of this Single class.

About

A React-Native Element Generator to generate Components programaticly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published