New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@chainplatform/country

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainplatform/country

@chainplatform/country support react-native and react-native-web

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
0
Created
Source

Swiper

@chainplatform/country support react-native and react-native-web

Current npm package version. PRs welcome! Follow @doansan

Install

npm install @chainplatform/country --save

or

yarn add @chainplatform/country

Usage

import React from 'react';
import {CountryPicker} from '@chainplatform/country';

class App extends React.Component {

    constructor(props) {
        super(props);

        this.state = {
          show: false
        };
    }

  render() {
    return (
      <View style={{flex:1}}>
        <CountryPicker
            show={this.state.show}
            inputPlaceholder={"search_placeholder"}
            searchMessage={"search_no_result"}
            pickerButtonOnPress={(item) => {
                console.log("item ", item);
                this.setState({show: false});
            }}
            style={{
                // Styles for whole modal [View]
                modal: {
                  
                },
                // Styles for modal backdrop [View]
                backdrop: {},
                // Styles for bottom input line [View]
                line: {
                    with: 0,
                    height: 0
                },
                // Styles for list of countries [FlatList]
                itemsList: {
                    
                },
                // Styles for input [TextInput]
                textInput: {
                    
                },
                // Styles for country button [Pressable]
                countryButtonStyles: {
                    
                },
                // Styles for search message [Text]
                searchMessageText: {
                    
                },
                // Styles for search message container [View]
                countryMessageContainer: {},
                // Flag styles [Text]
                flag: {},
                // Dial code styles [Text]
                dialCode: {
                    
                },
                // Country name styles [Text]
                countryName: {
                    
                }
            }}
        />
      </View>
    );
  }
}

Keywords

react

FAQs

Package last updated on 16 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts