- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 React Native 实现页面返回监听
A页面写:import {DeviceEventEmitter} from 'react-native'componentDidMount() { // 这里的`param`可以为空,接受你B页面传过来的数据 this.subscription = DeviceEventEmitter.addListener("EventType", (param)=>{ ...
2019-03-29 13:17:19 2648 2
原创 Warning: Failed prop type: Invalid prop value of type number supplied to Textinput, expected string
react-native 使用TextInput标签时会遇到这个警告:Warning: Failed prop type: Invalid prop value of type number supplied to Textinput, expected string in Textinput (at Appointmentnumber is: 112) in Appointmentnumbe...
2019-03-27 10:14:33 13147
原创 本地项目上传到github
首先你要有自己的github账户,如果你没有,请点击https://github.com/首页注册。点按钮注册成功之后,在页面上方用户菜单上选择 “+”->New repository创建一个新的仓库为仓库取一个名字,点击创建仓库按钮 你将成功创建一个仓库然后安装git,如果你没有,或者不会安装,请点击这里https://www.baidu.com/,如果不愿意,你...
2019-03-19 15:40:18 461
原创 react-native DatePickerAndroid(二)
import React, {Component} from 'react';import {StyleSheet, Text, View,TouchableHighlight,DatePickerAndroid} from 'react-native';import { withNavigation } from 'react-navigation';class MyPage exte...
2019-03-14 10:39:06 567
原创 react-native DatePickerAndroid调起日历(一)
贴 代码import React, {Component} from 'react';import {StyleSheet, Text, View,TouchableHighlight,DatePickerAndroid} from 'react-native';import { withNavigation } from 'react-navigation';class MyPag...
2019-03-13 17:38:49 1347
原创 react-native带参数跳转
import { NavigationActions } from 'react-navigation';const navigateAction = NavigationActions.navigate({ routeName: 'Profile', params: {}, action: NavigationActions.navigate({ routeName: 'S...
2019-03-12 14:15:41 1422
原创 react截取url的字符
constructor(props) { super(props); let {search} = this.props.location let paramsString = search.substring(1) let searchParams = new URLSearchParams(paramsString) let orderNo = se...
2019-03-12 13:49:53 2020
原创 写一个react-native状态按钮切换
效果是这样的因为是自学的,所以很多地方要自己摸索,贴个代码,不懂的可以一起讨论,虚心求教!~~import React, {Component} from 'react';import { View, Text, Button, StyleSheet, Image, TouchableOpacity,TextInput, ScrollView } from 'react-nativ...
2019-03-04 17:44:51 2197
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人