0.2.2 • Published 7 years ago
react-city-mobile v0.2.2
React City Mobile
Introduction
Installation
npm install --save react-city-mobile
or
yarn install react-city-mobile
How to use?
import React from 'react';
import RCity from 'react-city-mobile';
const cityData = require('../city.json');
const ChoiceCityTest = props => {
> return (
>> <RCity citys={ cityData }></RCity>
> )
}
export default ChoiceCityTest;
Props
citys
is the data source for the entire component.
Data Format (Importance!!)
{
"resCitys": {
"A": [ //catalog name
{
"region_id": "807",
"name": "阿克苏" //city name
},
],
"B": [
{
"region_id": "807",
"name": "阿克苏"
}
]
},
"hots": [
{
"region_id": "813",
"name": "阿勒泰"
}
]
}
0.2.2
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.35
7 years ago
0.1.34
7 years ago
0.1.33
7 years ago
0.1.32
7 years ago
0.1.31
7 years ago
0.1.30
7 years ago
0.1.29
7 years ago
0.1.28
7 years ago
0.1.27
7 years ago
0.1.26
7 years ago
0.1.25
7 years ago
0.1.24
7 years ago
0.1.23
7 years ago
0.1.22
7 years ago
0.1.21
7 years ago
0.1.20
7 years ago
0.1.19
7 years ago
0.1.18
7 years ago
0.1.17
7 years ago
0.1.16
7 years ago
0.1.15
7 years ago
0.1.14
7 years ago
0.1.13
7 years ago
0.1.12
7 years ago
0.1.11
7 years ago
0.1.10
7 years ago
0.1.9
7 years ago
0.1.8
7 years ago
0.1.7
7 years ago
0.1.6
7 years ago
0.1.5
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago