Posts

React Native - Why we use WebView.extraNativeComponentConfig() in WebView component?

Image
up vote 1 down vote favorite There is no documentation for this method in the official website of react native . Can anyone tell why we use WebView.extraNativeComponentConfig() in WebView component? A little example will be more appreciated. Thanks !!! android ios reactjs react-native share | improve this question asked Nov 22 at 15:15 Purple Bytes 60 7 add a comment  |  up vote ...

Given the result of grep -n, how can I open vim in that specific line? (using only keyboard)

Image
up vote 3 down vote favorite When I run grep "keyword" -n and get the following list of results: a/b/c:10: keyword a/b/c:70: keyword a/b/d:50: keyword How can I open one of the files (say the 2nd in list) in the line it found? I now just copy the the output using my mouse, and copy it after vim and then add + with the line number I copy. (meaning I write vim a/b/c +70 using the mouse copy to get the file name, and another mouse copy to get the line number [or I just copy it by hand, when its short enough]) Is there a way to do it with a keyboard shortcut? command-line vim grep share | improve this question edited 1 hour ago ...