无法理解Crashlytics中的崩溃报告.
这是崩溃日志:
Crashed: com.apple.main-thread
0 Rekindlr 0x10007a728 ViewController.(user_info(Match?, completionHandler : (Bool?) -> ()) -> ()).(closure #1) (ViewController.swift:201)
1 Alamofire 0x100156678 partial apply for thunk (ResponseSerialization.swift)
2 Alamofire 0x10015891c specialized Request.(response<A where ...> (queue : OS_dispatch_queue?, responseSerializer : A, completionHandler : (Response<A.SerializedObject, A.ErrorObject>) -> ()) -> Self).(closure #1).(closure #1) (ResponseSerialization.swift:131)
3 libdispatch.dylib 0x1827614bc _dispatch_call_block_and_release + 24
4 libdispatch.dylib 0x18276147c _dispatch_client_callout + 16
5 libdispatch.dylib 0x182766b84 _dispatch_main_queue_callback_4CF + 1844
6 CoreFoundation 0x182cccdd8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
7 CoreFoundation 0x182ccac40 __CFRunLoopRun + 1628
8 …Run Code Online (Sandbox Code Playgroud) 所以我想以一种非正统的方式使用RN Section列表。
我希望部分列表将渲染传递给组件,因为渲染不会非常统一。
我想使用部分列表,以便在滚动时仍然可以看到标题。
我制作了一个接收子项并将其呈现在部分列表中的组件,如下所示:
class SomeSectionList extends Component {
render() {
let sections = React.Children.map(this.props.children, (Child, index) => {
return {title: Child.type.title, data: [''], renderItem: () => Child, index }
});
return (
<SectionList
renderSectionHeader={({section}) => {
return <Text style={{ fontWeight: "bold" }}>{section.title}</Text>
}}
sections={sections}
keyExtractor={(item, index) => item + index}
/>
);
}
}
Run Code Online (Sandbox Code Playgroud)
用法将类似于:
<SomeSectionList>
<Comp1 />
<Comp2 />
</SomeSectionList>
Run Code Online (Sandbox Code Playgroud)
但是,我的问题是。说在这种情况下,Comp1不会从其组件中呈现任何内容,我希望能够从部分列表中隐藏其部分。
SomeSectionList组件如何知道它没有呈现任何内容或没有数据可以呈现任何内容,因此可以隐藏它的section和header?
任何建议都很好。我觉得使用SectionList这样做是过分的(但它使标头显示得更好),因此也对替代品开放。
reactjs react-native react-native-flatlist react-native-sectionlist
我得到以下信息:我认为它与 python 有关,因为我只是摆弄我的 python 环境,但无法弄清楚:
\n\n\xe2\x9d\xaf yarn --version\n1.16.0\nRun Code Online (Sandbox Code Playgroud)\n\n\xe2\x9d\xaf node --version\nv10.15.2\nRun Code Online (Sandbox Code Playgroud)\n\n\xe2\x9d\xaf python --version\nPython 2.7.16\nRun Code Online (Sandbox Code Playgroud)\n\n\xe2\x9d\xaf which python\n/usr/local/bin/python\nRun Code Online (Sandbox Code Playgroud)\n\nError running install script for optional dependency: "/Users/jordan/Desktop/RnDiffApp/node_modules/fsevents: Command failed.\nExit code: 1\nCommand: node-gyp rebuild\nArguments:\nDirectory: /Users/jordan/Desktop/RnDiffApp/node_modules/fsevents\nOutput:\ngyp info it worked if it ends with ok\ngyp info using node-gyp@3.8.0\ngyp info using node@8.10.0 | darwin | x64\ngyp http GET https://nodejs.org/download/release/v8.10.0/node-v8.10.0-headers.tar.gz\ngyp http 200 https://nodejs.org/download/release/v8.10.0/node-v8.10.0-headers.tar.gz\ngyp http GET https://nodejs.org/download/release/v8.10.0/SHASUMS256.txt\ngyp http 200 https://nodejs.org/download/release/v8.10.0/SHASUMS256.txt\ngyp info spawn /usr/bin/python2.7\ngyp info spawn args [ \'/Users/jordan/.nvm/versions/node/v8.10.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py\',\ngyp info spawn args \'binding.gyp\',\ngyp …Run Code Online (Sandbox Code Playgroud) 看到这是怎么回事,我有点困难.如何在不编写任何JS的情况下将其转换为JS(一切都在Clojure或CS中).
有人可以给出一个简单的例子,说明编译器如何将简单的东西转换为javascript.也许(def x"foo")或(defn [x](+ xx))?
我正在制作命令行应用程序.我想允许用户在为终端中的内容添加值时,能够使用文本编辑器添加值.git是如何实现这一目标的?
我想打开他们的默认编辑器,允许他们输入文本,当他们保存时获取值并将该值用于我的应用程序.
谢谢.
我期待制作一个非常基本的sytax荧光笔.我希望能指出正确的方向.我知道有很多伟大的项目已经做到这一点(Codemirror,rainbow.js等),但我希望得到如何创建它们的帮助,也许是一个简单的例子,使用Javascript(或clojurescript).
这些项目是否使用解析语言(使用像PEG.js这样的东西?)理想情况下我想用类似的东西而不是正则表达式来解析语言,但是一旦你定义了语言,将它变成语法荧光笔?当然,在每一个按键上你都不会重新解析整个tex并应用格式化?那么做一些简单的事情最好的方法是什么?跟踪当前光标位置,只看前面和后面这么多字符?某种状态机?
任何帮助都会很棒!谢谢
我正在设置一些内容拦截器(https://developer.apple.com/documentation/safariservices/creating_a_content_blocker)
我正在测试的 HTML 看起来像这样:
<div class="<random>">
<div>
<div>
<div>
<a class="bad" />
Run Code Online (Sandbox Code Playgroud)
现在,我想知道是否可以有一个 CSS 选择器来选择.bad然后删除整个.randomdiv 块。
我尝试过类似的事情:
{
"action": {
"type": "css-display-none",
"selector": "div > div > div > div >a[href*='speedtest.net']"
},
"trigger": {
"url-filter": "^https?:\/+([^\/:]+\\.)?google.*[:\/]"
}
}
Run Code Online (Sandbox Code Playgroud)
和div:has(a)。
似乎什么都不起作用。
有人知道是否可能吗?我什至找不到任何地方说明苹果对此支持什么(CSS4?)
css ×2
javascript ×2
node.js ×2
react-native ×2
alamofire ×1
clojure ×1
codemirror ×1
command-line ×1
git ×1
ios ×1
iphone ×1
java ×1
node-gyp ×1
reactjs ×1
shell ×1
swift ×1
yarnpkg ×1