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