摘要:
1、基本语法 (1)接收通知格式 import { DeviceEventEmitter } from 'react-native'; ... componentDidMount() { //收到监听 this.listener = DeviceEventEmitter.addListener('通 阅读全文
posted @ 2020-02-08 22:16
Mr·Xu
阅读(936)
评论(0)
推荐(0)
摘要:
实例代码: import React, { Component , PropTypes} from 'react'; import { AppRegistry, StyleSheet, Text, View, TextInput, TouchableOpacity } from 'react-nat 阅读全文
posted @ 2020-02-08 22:05
Mr·Xu
阅读(556)
评论(1)
推荐(1)
摘要:
修改名称 应用程序的名称默认是使用 react-native-cli 创建项目时的名称。修改的方式很简单,找到相应的配置然后修改即可。例如,我初始化的项目名称叫 test,现在想修改成 测试程序。 Android 编辑 android/app/src/main/res/values/strings. 阅读全文
posted @ 2020-02-08 01:06
Mr·Xu
阅读(732)
评论(0)
推荐(0)
摘要:
错误1:* What went wrong: Execution failed for task ':app:installDebug'. > com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallExc 阅读全文
posted @ 2020-02-08 01:03
Mr·Xu
阅读(3839)
评论(0)
推荐(0)
浙公网安备 33010602011771号