草庐IT

ios - facebook登录 react native 错误无法读取未定义的属性 'logInWithReadPermissions'

我在react-native应用程序中使用react-native-fbsdk登录。完成所有设置后,出现了一些错误。我用于登录操作的代码facebook=()=>{console.log("LoginManager",LoginManager);console.log("Login",LoginManager.logInWithReadPermissions);LoginManager.logInWithReadPermissions(["public_profile"]).then(result=>{if(result.isCancelled){console.log("Loginc

android - react native 如何在部分列表的一侧添加字母顺序

如何在节列表的边上添加字母顺序?我检查了一些包,例如react-native-atoz和react-native-selectedsectionlist。最好的是什么?或者我如何从头开始实现?以下是来自iOS通讯录应用的示例: 最佳答案 如果您有一个姓名列表,我会做的是按姓名将其拆分并制作上面的列表。看我的example现在您可以在生成的数组上运行.map并相应地显示字母和名称!constnames=["NedStark","RobertBaratheon","JaimeLannister","CatelynStark","Cers

ios - gl-react-native 不在物理 iOS 设备上显示图像

我正在尝试从gl-react获取饱和示例:Contrast/Saturation/Brightnessexample在iphone上工作,但由于某种原因图像只显示在iOS模拟器上而不是真实设备上。这是运行iOS10.3的iphoneSE模拟器上显示的内容(一切正常,如示例所示)。这是运行iOS10.3的实际iphoneSE上显示的内容这是代码/***SampleReactNativeApp*https://github.com/facebook/react-native*@flow*/importReact,{Component}from'react';import{Shaders,N

ios - React Native Facebook 登录不会重定向回 iOS 中的应用程序

我在使用ReactNativeFacebook登录时遇到问题。Android版本运行完美,但iOS版本在通过Facebook应用程序验证后不会重定向回应用程序。可能这不是代码有问题,而是facebook开发门户中的App设置有问题。如何在通过Facebook原生应用程序验证后重定向回iOS应用程序?我的代码,facebookLogin(){const{fbLoginRequest}=this.props;LoginManager.logInWithReadPermissions(['public_profile','email','user_birthday']).then(resul

javascript - 尝试在 create-react-native-app 项目中使用 react-native-fs (expo)

我正在尝试在我的应用程序中使用react-native-fs来上传文件等。我按照文档进行了安装,进行了导入,然后我将这段代码用于测试:componentDidMount(){constpath=RNFS.DocumentDirectoryPath+'/test.txt';console.log(path);//writethefileRNFS.writeFile(path,'Loremipsumdolorsitamet','utf8').then((success)=>{console.log('FILEWRITTEN!');}).catch((err)=>{console.log(e

android - 在 React-Native 中找不到 RCTConvert.h 文件

我想使用FastImage模块。(https://github.com/DylanVann/react-native-fast-image)但是当我构建它时它不起作用。我安装了npm和react-native链接。但是当我在iOS和Android中构建时,出现错误。iOSRCTConvert+FFFastImage.h错误RCTConvert.h'filenotfoundAndroid错误。Error:Cannotchoosebetweenthefollowingconfigurationsofproject:react-native-fast-image:-debugApiEleme

javascript - React-native SectionList 项目索引在部分之间继续

跟随RNSectionList文档。如果我想像示例中那样构建同质部分列表:}renderSectionHeader={({section})=>}sections={[//homogeneousrenderingbetweensections{data:[...],title:...},{data:[...],title:...},{data:[...],title:...},]}/>如何使index在各部分之间继续?现在,indexreflectstheItem'sindexwithinthesection.对于每个部分,索引从零开始。有没有其他方法可以使索引从第一部分的第一项进展到

ios - 使用 cocoapods for firebase 的 React-native 共享扩展问题

我正在尝试使用基于firebase的应用程序实现共享扩展。所以我创建了一个pod文件并生成了一个.xcworkspace项目。我正在使用[react-native-share-extension][1]。按照所有安装教程进行操作,一切似乎都正常,但是当我尝试启动扩展Xcode控制台时说:RNFirebasecoremodulewasnotfoundnativelyoniOS,ensureyouhavecorrectlyincludedtheRNFirebasepodinyourprojects'Podfile'andhaverun'podinstall'.这是我的pod文件:targe

javascript - 调试为什么 react-native release build 崩溃并且调试一个工作正常

我在Debug模式下工作,一切看起来都很好,但是当我将我的应用程序构建到TestFlight(即发布版本)时,它在LaunchScreen崩溃了。经过一段时间的调试后,我将问题缩小到以下代码importReactfrom'react'import{Subscribe}from'unstated'constgetStoreAsProps=(storeArr)=>{conststoreProps={}storeArr.map(value=>(storeProps[value.constructor.name]=value))returnstoreProps}constwithStore=(

ios - 未找到 react-native-firebase FirebaseCore/FirebaseCore.h

尝试使用faSTLane和CocoaPods编译带有react-native-firebase的react-native项目时出错:Infileincludedfrom/Users/XXXX/XXXX/XXX/XXX/node_modules/react-native-firebase/ios/RNFirebase/RNFirebaseUtil.h:6:../../../ios/Pods/Headers/Public/Firebase/Firebase.h:1:9:fatalerror:'FirebaseCore/FirebaseCore.h'filenotfound#import1e