react-native link react-native-webview也执行了但是还是报错,求助论坛大牛.万分感谢.
expo开发react-native应用,在使用react-native-webview的过程中遇到这个报错:Invariant Violation: Invariant Violation: requireNativeComponent: "RNCWebView" was not found in the UIManager
react native新建的项目无法运行
在现有原生项目中增加RN,主要适配pad系列
在现有项目中增加RN页面,由于是pad类型,Android如何在同一个页面加载多个RN,并且能通过每个RN的对象进行消息通知。
新人求助,RN项目ios端的问题
我对项目进行了RN的版本升级,升级后提示library not found for -ljschelpers ,我在Link Binary With Libraries里看到已经有jschelpers这个文件,但我取消后想重新加入但又发现在添加时没有该文件所在的文件夹,求助大神帮帮忙,感激不尽
rn 做的商城DEMO 分享给大家
刚刚做的一个商城的DEMO,分享给大家链接文本
FAILURE: Build failed with an exception.
react-native 怎么上传文件到阿里云
react-native 具体怎么上传文件到阿里云,使用fetch报错The body of your POST request is not well-formed multipart/form-data
新手求助,紧急
Ld /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/DoctorApp.app/DoctorApp normal i386 (in target: DoctorApp)
cd /Users/demoup_nak/Documents/nuo_app/DoctorApp/ios
export IPHONEOS_DEPLOYMENT_TARGET=9.0
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -L/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator -L/Users/demoup_nak/Documents/nuo_app/DoctorApp/ios/EaseUI/EMUIKit/3rdparty/DeviceHelper/VoiceConvert/opencore-amrwb -L/Users/demoup_nak/Documents/nuo_app/DoctorApp/ios/EaseUI/EMUIKit/3rdparty/DeviceHelper/VoiceConvert/opencore-amrnb -L/Users/demoup_nak/Documents/nuo_app/DoctorApp/ios -L/Users/demoup_nak/Documents/nuo_app/DoctorApp/ios -F/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator -F/Users/demoup_nak/Documents/nuo_app/DoctorApp/ios/Pods/PgyUpdate/PgySDK/sdk -F/Users/demoup_nak/Documents/nuo_app/DoctorApp/ios/Pods/Pgyer/PgySDK/sdk -F/Users/demoup_nak/Documents/nuo_app/DoctorApp/ios/HyphenateFullSDK -filelist /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Intermediates.noindex/DoctorApp.build/Debug-iphonesimulator/DoctorApp.build/Objects-normal/i386/DoctorApp.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -Xlinker -object_path_lto -Xlinker /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Intermediates.noindex/DoctorApp.build/Debug-iphonesimulator/DoctorApp.build/Objects-normal/i386/DoctorApp_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -ObjC -framework AudioToolbox -framework AvFoundation -framework CoreMotion -framework CoreTelephony -framework OpenGLES -framework PgySDK -framework PgyUpdate -framework SystemConfiguration -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Intermediates.noindex/DoctorApp.build/Debug-iphonesimulator/DoctorApp.build/DoctorApp.app-Simulated.xcent -lz -lc++ -lsqlite3.0 -framework CoreTelephony -framework SystemConfiguration /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTWeChat.a /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTJPushModule.a /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTJCoreModule.a -lresolv -framework UIKit -framework Foundation -framework CoreFoundation -framework CFNetwork -framework Security /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRNImagePicker.a -lopencore-amrnb -lopencore-amrwb /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libReact.a /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTAnimation.a /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTActionSheet.a /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTGeolocation.a /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTImage.a /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTLinking.a /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTNetwork.a /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTSettings.a -framework Hyphenate /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTText.a /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTVibration.a /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTWebSocket.a -lRCTHttpCache -weak_framework UserNotifications -framework CoreGraphics -lReact -lyoga -lcxxreact -ljschelpers -lLRDRCTSimpleToast -lRNSound -lCodePush -lPods-DoctorApp -lRNFetchBlob -lRNVersionNumber -Xlinker -dependency_info -Xlinker /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Intermediates.noindex/DoctorApp.build/Debug-iphonesimulator/DoctorApp.build/Objects-normal/i386/DoctorApp_dependency_info.dat -o /Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/DoctorApp.app/DoctorApp
clang: error: no such file or directory: '/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTWeChat.a'
clang: error: no such file or directory: '/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTJPushModule.a'
clang: error: no such file or directory: '/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTJCoreModule.a'
clang: error: no such file or directory: '/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRNImagePicker.a'
clang: error: no such file or directory: '/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTAnimation.a'
clang: error: no such file or directory: '/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTActionSheet.a'
clang: error: no such file or directory: '/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTGeolocation.a'
clang: error: no such file or directory: '/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTImage.a'
clang: error: no such file or directory: '/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTLinking.a'
clang: error: no such file or directory: '/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTNetwork.a'
clang: error: no such file or directory: '/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTSettings.a'
clang: error: no such file or directory: '/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTText.a'
clang: error: no such file or directory: '/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTVibration.a'
clang: error: no such file or directory: '/Users/demoup_nak/Library/Developer/Xcode/DerivedData/DoctorApp-fcohpmjbqrvkrodkyhnvlueyebma/Build/Products/Debug-iphonesimulator/libRCTWebSocket.a'
Command Ld failed with a nonzero exit code
上面是报错信息,求大神解答一下,我觉得是文件找不到的原因
RN0.57,ios项目无法获取当前地理位置
最近项目需要获取用户的地理信息,使用了navigator.geolocation.getCurrentPosition这一方法来获取位置信息,在安卓版上运行正常。但是在ios版本上,经纬度始终返回0。在xcode中打断点看了一下
CLLocation *location = [locations lastObject]; //在这一步数据还是正确的
CLLocationCoordinate2D coordinate = location.coordinate; //再取经纬度的时候,就返回0了,打印信息如下。
Printing description of location:
<+50.55045785,+111.05317471> +/- 79.61m (speed -1.00 mps / course -1.00) @ 2019/6/5 中国标准时间 20:50:29
Printing description of coordinate:
(CLLocationCoordinate2D) coordinate = (latitude = 0, longitude = 0)
请各位大佬帮忙分析一下原因。
TV端监听遥控器按键TVEventHandler,无法监听到‘菜单’按钮
当前通过TVEventHandler能监听到的有上下左右和确定按钮,‘菜单’键无法监听到,怎样才能监听到菜单键
android继承ViewGroupManager的原生UI组件,在RN上添加子View,但是没有按照RN的布局显示
android继承ViewGroupManager的原生UI组件,在RN上添加子View,但是没有按照RN的布局显示,都集中在了左上角,原生UI是用的FrameLayout,有大佬指导一下吗?
run-ios运行不了项目,只能在xcode中运行
run-ios就报错,请教怎么解决
用react-native-camera做的二维码扫描 二维码稍微有破损就扫不到了
有没啥好的解决方法
react-native run-ios 运行后启动模拟器 却打不开项目也不报错 求大神帮助!
Could not resolve all dependencies for configuration ':app:_debugApk'.
react-native run-android报的错,是拉取了别人的项目
A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugApk'.
A problem occurred configuring project ':react-native-image-crop-picker'.
Could not resolve all dependencies for configuration ':react-native-image-crop-picker:_debugPublishCopy'.
Could not find com.android.support:appcompat-v7:27.1.0.
Searched in the following locations:
file:/C:/Users/Administrator/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.1.0/appcompat-v7-27.1.0.pom
file:/C:/Users/Administrator/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.1.0/appcompat-v7-27.1.0.jar
file:/E:/360MoveData/Users/Administrator/Documents/demo/demo/RN/android/sdk-manager/com/android/support/appcompat-v7/27.1.0/appcompat-v7-27.1.0.jar
Required by:
MHCRMApp:react-native-image-crop-picker:unspecified > com.facebook.react:react-native:0.51.0
Could not find com.android.support:appcompat-v7:27.1.0.
Searched in the following locations:
file:/C:/Users/Administrator/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.1.0/appcompat-v7-27.1.0.pom
file:/C:/Users/Administrator/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.1.0/appcompat-v7-27.1.0.jar
file:/E:/360MoveData/Users/Administrator/Documents/demo/demo/RN/android/sdk-manager/com/android/support/appcompat-v7/27.1.0/appcompat-v7-27.1.0.jar
Required by:
MHCRMApp:react-native-image-crop-picker:unspecified > com.github.yalantis:ucrop:2.2.2-native
react-native 要怎么监听短信?自己撸原生吗?
githu上面有个库,react-native-android-sms-listener,但好像无法在API 28以上使用,不知道怎么监听短信?现在是不是只能写原生?还是有其它方案?
父组件通过ref能够获取到子组件,但是不能调用子组件的方法
flex布局 Android端 底部被键盘顶起
<Container style={{justifyContent:'space-between'}}>
<Header style={{height: 60}}></Header>
<Content style={{flex: 1}}></Content>
<Footer style={{height: 60}}></Footer>
</Container>
采用两端定高,中间flex:1自适应的经典布局方式,
在Content组件没有输入组件,
在android手机上,获取焦点输入时,底部Footer被键盘顶起,遮盖了输入框,ios上没问题。
有人遇到这个问题么???帮帮我
RN在ios上 用vscode启动模拟器没办法加载 但是用xcode启动项目却可以启动 到底哪里出问题了?
怎么实现类似safari,无相的多窗口
无相我打开ipa,发现是用react native写的,但是js代码混淆了,没有头绪