-
Shortcut CMD + SHIFT + .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.view.View; | |
import com.reactnativenavigation.controllers.SplashActivity; | |
public class MainActivity extends SplashActivity { | |
@Override | |
public View createSplashLayout() { | |
return super.createSplashLayout(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
export default class Calculator extends React.Component { | |
constructor(props) { | |
super(props); | |
this.props.navigator.setButtons({ | |
rightButtons: [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { YellowBox } from 'react-native'; | |
YellowBox.ignoreWarnings([ | |
'<InputAccessoryView> is not supported on Android yet.' | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install https://github.com/jamiltz/react-native-navigation.git --save |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1="\[\033[48;5;95;38;5;214m\]\W\[\033[m\]\n$ " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Print first x lines | |
ls -la ~ | head -n 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ReactMethod | |
private void queryBookmarkIds(Callback errorCallback, Callback successCallback) { | |
successCallback.invoke(Arguments.createArray()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Log.d("results", resultSet.allResults().get(0).toMap().toString()); | |
// => suggestion: it would be good if we didn't have to use `toMap().toString()` to print useful information to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ResultSet resultSet = query.execute(); | |
List<Result> list = resultSet.allResults(); | |
// suggestion: the 2nd line actually mutates resultSet. Should call `allResults() only once! |