kalontech / reactnativecountrycodelist Goto Github PK
View Code? Open in Web Editor NEWCountry code list with alphabet navigation
License: MIT License
Country code list with alphabet navigation
License: MIT License
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!
Tapping on item while the keyboard open will close the keyboard, for Android and you need another tap to select item, in order to solve this add the following property to the CountryCodeList.
<CountryCodeList
alphabetListProps={{keyboardShouldPersistTaps: 'always'}}
....... />
import CountryCodeList from 'react-native-country-code-list'
Cannot read property 'oneOfType' of undefined
Please help me out why i'm facing this error.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.