Git Product home page Git Product logo

react-native-picker-checkbox's Introduction

pexels-kevin-ku-577585

โšก๏ธ I'm a developer, I like solving problems,
๐Ÿ›  I'm CTO / Co-founder at Cadex,
๐Ÿ’ป my actual stacks are reactJs, react-native and python,
โ„๏ธ I have a component published in NPM for react-native react-native-picker-checkbox,
๐Ÿ I have also a component published in PyPi.org for python reuterpy,

  • Github visitors

  • ๐Ÿ“ซ How to reach me
    Linkedin Badge Gmail Badge Telegram Badge

Github Stats

ReadMe Card

ReadMe Card

react-native-picker-checkbox's People

Contributors

abdulbsit avatar dependabot[bot] avatar nowarzz avatar viniciuswovst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-native-picker-checkbox's Issues

invalid violation element type is invalid.

Hey,
I download the example and it's empty project without any example.
in addition when I tried to copy the example into doc it's not working.
the error is

Invariant Violation: Element type is invalid: expected a string for built-in components or a class/function (for composite components) but got undefined.

code

/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * @format
 * @flow
 */

import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View} from 'react-native';
import PickerCheckBox from 'react-native-picker-checkbox';


class App extends Component{

  constructor(props){
    super(props)
    this.items = [
      {
        itemKey:1,
        itemDescription:'Item 1'
        },
      {
        itemKey:2,
        itemDescription:'Item 2'
        },
      {
        itemKey:3,
        itemDescription:'Item 3'
        }
    ];
  }

  handleConfirm(pItems){
    console.log('pItems =>', pItems);
  }

  
  render() {
    return (
      <View style={{flex:1}}>
      <PickerCheckBox
        data={this.items}
        headerComponent={<Text style={{fontSize:25}} >items</Text>}
        OnConfirm={(pItems) => this.handleConfirm(pItems)}
        ConfirmButtonTitle='OK'
        DescriptionField='itemDescription'
        KeyField='itemKey'
        placeholder='select some items'
        arrowColor='#FFD740'
        arrowSize={10}
        placeholderSelectedItems ='$count selected item(s)'
        />
      </View>
    )
  }
}

export default App;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.