expo-njbd-base
针对expo工程进行了一层网络层和数据缓存层的薄封装 ## 开始
Last updated 10 months ago by llong .
MIT · Original npm · Tarball · package.json
$ cnpm install expo-njbd-base 
SYNC missed versions from official npm registry.

expo-njbd-base

针对expo工程进行了一层网络层和数据缓存层的薄封装

开始

$ npm install expo-njbd-base --save or $ yarn add expo-njbd-base

初始化配置

	import {Config, isFirstOpen, Network} from 'expo-njbd-base';

	export default AppRoot extends React.Component {
		componentWillMount() {
			Config.baseHost = 'https://ccccc.ccc.com';

			isFirstOpen().then(r => {
				if(r) {
					console.log('第一次打开程序!');
				}
			});

			// getApi调用get方法
			Network.getApi('/api/xxx', {pm: 1})
			.then(r => {

			})

			// postApi调用post方法
			Network.postApi('/api/xxx', {pm: 1})
			.then(r => {

			})

			// putApi调用put方法
			Network.putApi('/api/xxx', {pm: 1})
			.then(r => {

			})

			// deleteApi调用delete方法
			Network.deleteApi('/api/xxx', {pm: 1})
			.then(r => {

			})

			// 更多待更新
		}
	}

Current Tags

  • 1.0.56                                ...           latest (10 months ago)

56 Versions

  • 1.0.56                                ...           10 months ago
  • 1.0.55                                ...           10 months ago
  • 1.0.54                                ...           10 months ago
  • 1.0.53                                ...           10 months ago
  • 1.0.52                                ...           10 months ago
  • 1.0.51                                ...           10 months ago
  • 1.0.50                                ...           10 months ago
  • 1.0.49                                ...           10 months ago
  • 1.0.48                                ...           10 months ago
  • 1.0.47                                ...           10 months ago
  • 1.0.46                                ...           a year ago
  • 1.0.45                                ...           a year ago
  • 1.0.44                                ...           a year ago
  • 1.0.43                                ...           a year ago
  • 1.0.42                                ...           a year ago
  • 1.0.41                                ...           a year ago
  • 1.0.40                                ...           a year ago
  • 1.0.39                                ...           a year ago
  • 1.0.38                                ...           a year ago
  • 1.0.37                                ...           a year ago
  • 1.0.36                                ...           a year ago
  • 1.0.35                                ...           a year ago
  • 1.0.34                                ...           a year ago
  • 1.0.33                                ...           a year ago
  • 1.0.32                                ...           a year ago
  • 1.0.31                                ...           a year ago
  • 1.0.30                                ...           a year ago
  • 1.0.29                                ...           a year ago
  • 1.0.28                                ...           a year ago
  • 1.0.27                                ...           a year ago
  • 1.0.26                                ...           a year ago
  • 1.0.25                                ...           a year ago
  • 1.0.24                                ...           a year ago
  • 1.0.23                                ...           a year ago
  • 1.0.22                                ...           a year ago
  • 1.0.21                                ...           a year ago
  • 1.0.20                                ...           a year ago
  • 1.0.19                                ...           a year ago
  • 1.0.18                                ...           a year ago
  • 1.0.17                                ...           a year ago
  • 1.0.16                                ...           a year ago
  • 1.0.15                                ...           a year ago
  • 1.0.14                                ...           a year ago
  • 1.0.13                                ...           a year ago
  • 1.0.12                                ...           a year ago
  • 1.0.11                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (9)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |