我正在使用:react-native-cli: 2.0.1 react-native: 0.62.2 Xcode: 11.3.1
创建一个 react-native 项目 (react-native init GetAway) 并使用 npx react-native run-ios 启动它会引发构建错误:
The following build commands failed:
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
CompileSwift normal x86_64 /Users/sercan/Desktop/Arbeit/Urlaub/rescue/GetAway/ios/Pods/YogaKit/YogaKit/Source/YGLayoutExtensions.swift
(2 failures)
Run Code Online (Sandbox Code Playgroud)
我不知道为什么会出现构建错误,对于新创建的项目。如果您有任何解决此问题的想法,请告诉我。
提前致谢
编辑:完整错误消息的链接:https : //docs.google.com/document/d/1o6tj9OrWmH-OZ5rCkYxhQTi-RYH36S5u36zpmBHHY3E/edit?usp=sharing
希望对这个问题能有所帮助。
我正在使用React Native并尝试从名为Feiertage-API(https://feiertage-api.de/)的API获取一些数据,该数据基本上会返回(应该返回)德国的法定假日。
尝试在react native中使用fetch,会给我这样的响应:
Response {
"_bodyBlob": Blob {
"_data": Object {
"blobId": "49C4AD4B-4648-44DB-AED7-7654EB78EF7A",
"name": "api",
"offset": 0,
"size": 487,
"type": "application/json",
},
},
"_bodyInit": Blob {
"_data": Object {
"blobId": "49C4AD4B-4648-44DB-AED7-7654EB78EF7A",
"name": "api",
"offset": 0,
"size": 487,
"type": "application/json",
},
},
"headers": Headers {
"map": Object {
"access-control-allow-origin": Array [
"*",
],
"content-type": Array [
"application/json",
],
"date": Array [
"Tue, 31 Jul 2018 07:17:51 GMT",
],
"server": Array [
"nginx",
],
"x-powered-by": Array [
"PHP/7.0.31, …Run Code Online (Sandbox Code Playgroud) 有没有办法在发生变化时自动向下滚动react-native的ScrollView元素?
这是我在应用程序中开发聊天功能时一直在寻找反应原生的东西。
但没有足够的答案。这就是为什么我回答自己的问题,希望有人可以利用它。