-
0 votesanswersviews
SLider左菜单按钮未显示
我正在创建滑块抽屉 . 它很好用 . 我有两个问题 . 左侧菜单上的文本切换发生时不显示 . 所以Toggle不工作 . 其次,我想删除抽屉上的导航栏 Headers . 这是我的代码,请帮忙 import { createStackNavigator , createDrawerNavigator ,createAppContainer} from 'react-navigation'; ... -
0 votesanswersviews
React Native项目在Android Studio中运行,但不在终端中运行
我是反应原生和JS的新手 . 我正面临这个问题,当我使用Android Studio'run'在设备上运行我的项目时,它可以工作 . 但是当我尝试使用“react-native run-android”命令运行它时,它不会运行以下错误: 出了什么问题:无法确定任务':app:compileDebugJavaWithJavac'的依赖关系 . 无法使用JavaGradleScopeServices... -
0 votesanswersviews
google-translate-api在react-native中给出错误
在我的React Native应用程序上导入 google-translate-api 时,我收到错误"couldn't resolve the module querystring" . 请找到附带的截图 . Error Error: 无法从"..."解析模块"querystring" . Haste模块映射中不存在模块"q... -
0 votesanswersviews
如何解决此错误>任务:app:installDebug FAILED?有人可以解释一下吗?
我是反应原生的新手,这是我第一次使用它 . 但我在互联网上搜索了几个解决方案,但我发现任何一个女巫都无法真正帮助我 . 我安装了Android Studio,Nodejs,react-Native CLI,npm,Visual Studio等所有需要使用的东西 . 我创建了Android虚拟设备模拟器,以便在虚拟电话中看到我的项目 . 但我仍然有这个错误 . 我在CMD中的错误: > Tas... -
0 votesanswersviews
React Native StackOverflowException
我在Android上的react-native应用程序中遇到以下异常 E/unknown:ReactNative: Exception in native call com.facebook.react.uimanager.IllegalViewOperationException: StackOverflowException at com.facebook.react.... -
0 votesanswersviews
如何设置webview heigh以自动响应原生?
const styles = StyleSheet.create({ viewQuestion: { flex: 1, flexDirection: 'row' }, question: { flex: 1, margin: 5 } }); <View style={styles.vie... -
0 votesanswersviews
反应原生措施未定义
我有一个ScrollView,其中有几个View lick所以 <ScrollView> <View ref = {"view1"} style = {{ height: 200, backgroundColor: "#FF0000" }... -
0 votesanswersviews
facebook登录管理器抛出错误:登录失败
使用他们的github页面中的代码示例 - LoginManager.logInWithReadPermissions(["public_profile"]).then( (result) => { if (result.isCancelled) { console.log("Login cancelled&quo... -
0 votesanswersviews
ReactNative:使用react-native-push-notification库接收通知时,我的应用程序崩溃
我使用react-native-push-notification库进行远程通知 . 在我的情况下App崩溃(Android版本8.1)时收到远程通知 . 它运行较低的Android版本,但在Android版本超过7它没有工作 这是我在app中尝试过的 componentDidMount() { PushNotification.configure({ onRegister: async ... -
0 votesanswersviews
无法解析样式组件?
Problem: 我正在使用expo-cli使用react-simple-chatbot创建一个应用程序 . 这就是我的组件的外观 . import React, { PureComponent } from "react"; import ChatBot from "react-simple-chatbot"; class Trafficbot exte... -
-1 votesanswersviews
在Uimanager中找不到的AirMap会对原生ios做出反应
Getting error in react native map integraion in ios :Invariant Violation requireNativeComponent AirMap was not found i UiManager 我是反应原生的新人我用过react-native-maps工作在android但是在ios中得到错误AirMap.h没找到 . 我想整合苹果 ... -
0 votesanswersviews
找不到com.android.tools:common:25.3.3
请帮忙 !!我安装了realm,我的项目没有运行enter image description here enter image description here 出了什么问题:配置项目':realm'时出现问题 . 无法解析所有配置文件':realm:classpath' . 找不到com.android.tools:common:25.3.3 . 在以下位置搜索:https://jcen... -
0 votesanswersviews
tx.executeSql使用react-native-sqlite-storage的结果结构是什么?
我在React Native中使用 react-native-sqlite-storage . 通常,我们这样使用: tx.executeSql(`SELECT * FROM TABLE_NAME) .then(([tx, results]) => { let len = results.rows.length; let datas = []; for (let... -
0 votesanswersviews
React Native导入React Navigation
我按照安装React Navigation for Android的所有说明进行操作 . 首先,"npm install --save react-navigation"," npm install --save react-native-gesture-handler" . "react-native link react-native-ges... -
0 votesanswersviews
不能在React本机默认项目中将类作为函数调用
我刚安装了反应本机默认项目并在默认类中添加了一个函数,但它没有被执行 import React, {Component} from 'react'; import {Platform, StyleSheet, Text, View, Alert,TouchableOpacity} from 'react-native'; const instructions = Platform... -
0 votesanswersviews
使用flatlist更新所有组件
我使用的模式中有4个组件使用相同的项目 . 我做了一个不同的列表,如QuotesList组件,VideoList组件,'AllList component' . 所有这些都使用 FlatList ,它们转到Item组件 . 假设我的AllList也包含QuotesList中的数据 . 所以如何管理,以便如果我在任何AllList中进行更改也反映了QuotesList . 所有推文的平面列表 <... -
0 votesanswersviews
反应本机谷歌翻译
我使用react-native开发了一个Android移动应用程序 . 我的应用程序的母语是英语,但我也希望用普通话提供 . 所以我的问题是如何将静态和获取的数据转换为普通话 . 请分享一个解决方案 . -
0 votesanswersviews
React Native IOS App崩溃,CFRelease()调用NULL
我无法在调试模型中重现错误 . 但是在发布应用程序中,在使用 react-navigation 返回并多次导航选项卡之后,应用程序崩溃了 . 我收到了 sentry 的错误 . 应用程序崩溃是因为线程太多了吗?每次导航选项卡时,都有4个http请求 . 谢谢你的选择 . 以下是错误: OS Version: iOS 12.1 (16B92) Report Version: 104 Excepti... -
0 votesanswersviews
如何在反应原生的手风琴中正确渲染获取的api结果?
您好,在我的项目中,我使用了 native-base 的手风琴 . 我无法实现这一点 . 因为在手风琴的内容和 Headers 的渲染中,我在手风琴中得不到任何东西 . 以下是我的代码以及来自服务器的json响应 . 请帮我弄清楚这个错误 . 我真的不知道这个错误 . 请指导 . json [{ data: { course: { name: "I. ... -
1 votesanswersviews
TSlint和React:如何在导出默认之前在底部强制执行样式?
我正在用TypeScript构建一个React Native应用程序 . 我正在配置我的TSLint文件 . 有没有办法强制同一文档中的样式位于文件的底部(在导出之前)? 例如 . MyComponent.tsx : import React, { Component } from "react"; import { StyleSheet, Text } from &quo... -
0 votesanswersviews
React Native:如何创建文本文件并将其保存到外部存储
我正在尝试使用本机Android和iOS设备创建一个文本文件 . 我们如何将字符串数据存储在文本文件中,并将其保存到设备的外部存储器中 . 请建议是否有相同的图书馆 . -
0 votesanswersviews
如何从反应原生的屏幕中删除顶部选项卡?
我正在使用wix反应原生导航,我可以使用导航到屏幕 Navigation.events().registerAppLaunchedListener(() => { Navigation.setRoot({ root: { stack: { children: [{ component: { name: 'myproject.AuthScreen', pas... -
0 votesanswersviews
使用codepush进行即时更新
expo是否为我们做了代码推送 . 我希望能够立即更新应用程序,而无需用户在appStore或playStore上更新应用程序 . 任何帮助,将不胜感激 . -
0 votesanswersviews
如何在反应本机项目中配置AppDelegare.m
我想对AppDelegate.m文件进行配置,使用react-native-modal-datetime-picker的24hours格式 . 文档说如下 The is24Hour prop is only available on Android but you use a small hack for enabling it on iOS by setting the app's defaul... -
0 votesanswersviews
每当UI在本机中重新呈现时,都会重新加载样式表
我正在尝试应用一些可以检测方向的逻辑,并且根据方向变化,一旦我得到方向,我将在样式表中计算宽度和高度,这里样式表是我的另一个js文件 . -
0 votesanswersviews
React-Native:从后端获取主题变量
我有一个文件,例如theme.js和我的theme.js里面我使用常量来表示我的主题 . const config = { BACKGROUND: 'white' ..// } export default config; 我的用法示例: <View style={{ backgroundColor: theme.BACKGROUND }} /> 现在我可以从服务器接收一些属性... -
0 votesanswersviews
无法在列表react-native中显示字段初始值
我遇到了一种情况,我需要在列表的项目中呈现一个redux-form,以显示 Field 的初始值(如果有的话) . 但问题是,即使项目作为一些字段值,但它没有显示在列表中 . 这是代码: const mapStateToProps = (state, props) => { return ( { initialValues: { [props.prod... -
0 votesanswersviews
如何在页面底部对齐视图而不依赖于其他视图
我希望将视图工具栏与页面底部对齐,而不使用justifyContent属性的“space-around” . 下面是我如何制作这个工具栏的代码: <View style={{ height: '100%', justifyContent: 'space-between', }}> <View style={{ flexDirection: 'row', height: ... -
0 votesanswersviews
使用expo反应Native异常信息
React Native在崩溃时显示指向java捆绑文件的链接 . 有没有办法显示链接到javascript文件及其出错的行?浏览器在控制台中显示带有javascript信息的信息 -
0 votesanswersviews
将包含标签的简单描述数据转换为数组
我有描述数据,如: "<question> This is question 1? </question> <answer> This is answer 1 </answer> <question> this is question 2? </question> <answer> This is an...