GithubHelp home page GithubHelp logo

reactnativecountrycodelist's People

Contributors

artemkosiakevych avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

reactnativecountrycodelist's Issues

Perfect library but ListView is about to get deprecated

The library is working perfectly, it's exactly what I was looking for.
but I get the following note:

Warning: ListView is deprecated and will be removed

I was wondering if it's possible to upgrade the library and get support for future react-native updates? Thanks!

search-box "Repository not found"

Hi!

When I try to install this library, npm can't find the dependency "react-native-search-box", I suppose you deleted the repository because I can't find them on Github.

data[key].filter is not a function <unknown> CountryCodeList.js:58:28 CountryCodeList.<anonymous>

i am getting error when i put things like this

import React from 'react';
import { View, Text, StyleSheet } from 'react-native';
import CountryCodeList from 'react-native-country-code-list';
import { connect } from 'react-redux';
import { selectCountryFunction } from '../../redux/actions/userAction';


class TraddleCountryPicker extends React.Component {
  state = {};

  render() {
    return (
      <View style={{ flex: 1, backgroundColor: '#fff' }}>
        <CountryCodeList
          data={[
            { name: 'india', wow: 'india', code: 91 },
            { name: 'Pakistan', wow: 'Pakistan', code: 91 },
            { name: 'Bangladesh', wow: 'bangladesh', code: 91 }
          ]}
          onClickCell={cellObject => {
            this.props.selectCountry(cellObject);
            this.props.navigation.goBack();
          }}
          renderCell={cellObject => {
            return (
              <View style={styles.renderCellStyle}>
                <Text style={styles.textStyle}>{cellObject.item.name}</Text>
                <Text style={styles.textStyle}>{cellObject.item.code}</Text>
              </View>
            );
          }}
        />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  renderCellStyle: {
    borderWidth: 0.6,
    borderColor: '#efefef',
    height: 40,
    justifyContent: 'space-between',
    flexDirection: 'row',
    alignItems: 'center',
    paddingLeft: 10,
    paddingRight: 10
  },
  textStyle: {
    fontSize: 20,
    fontWeight: '500'
  }
});

export default connect(
  state => ({
    user: state.user
  }),
  dispatch => ({
    selectCountry: country => dispatch(selectCountryFunction(country))
  })
)(TraddleCountryPicker);

when i search on searchbox i get error like this

image

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.