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
#!/usr/bin/env node | |
const fs = require('fs') | |
// Change your version you want. eg: 11.8.0 | |
var ggPlayServiceVersion = '11.8.0' | |
// Folder package library, find it in node_modules. | |
var folderLibrary = [ | |
'react-native-onesignal', | |
'react-native-admob', |
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
class Star { | |
double left; | |
double top; | |
double extraSize; | |
double angle; | |
int typeFade; | |
Star( | |
{@required this.left, | |
@required this.top, |
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
Color gradientStartFrom = Colors.deepPurple; | |
Color gradientStartTo = Colors.purple; | |
Color gradientEndFrom = new Color(0xff483475); | |
Color gradientEndTo = new Color(0xff070B34); | |
animControlStar = new AnimationController(vsync: this, duration: new Duration(milliseconds: 2000)); | |
fadeAnimStar1 = new Tween(begin: 0.0, end: 1.0) | |
.animate(new CurvedAnimation(parent: animControlStar, curve: new Interval(0.0, 0.5))); | |
fadeAnimStar1.addListener(() { |
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
class RadialSeekBarPainter extends CustomPainter { | |
final double trackWidth; | |
final Paint trackPaint; | |
final double progressWidth; | |
final Paint progressPaint; | |
final double progressPercent; | |
final double thumbSize; | |
final Paint thumbPaint; | |
final double thumbPosition; |
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
// Hero in screen current screen | |
child: new Hero( | |
createRectTween: createRectTween, | |
tag: planet.name, | |
child: new RadialExpansion( | |
maxRadius: kMaxRadius, | |
child: new Photo( | |
photo: planet.imagePath, | |
onTap: () { | |
Navigator.of(context).push(new PageRouteBuilder( |
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
child: new Container( | |
width: double.infinity, | |
height: 5.0, | |
margin: new EdgeInsets.only(left: 10.0, right: 10.0), | |
decoration: new BoxDecoration( | |
gradient: | |
new LinearGradient(colors: [colorAnimIndicator1.value, colorAnimIndicator4.value]), | |
borderRadius: new BorderRadius.all(new Radius.circular(5.0))), | |
), |
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
class TabIndicatorPainter extends CustomPainter { | |
Paint painter; | |
double xPos, radiusOval; | |
double radiusOvalOrigin = 20.0; | |
TabIndicatorPainter(double xPos, double radiusOval) { | |
painter = new Paint() | |
..color = Colors.white | |
..style = PaintingStyle.fill; |
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 let currentEmail = '' | |
export default class MainScreen extends Component { | |
constructor(props) { | |
super(props) | |
BackHandler.addEventListener('hardwareBackPress', function () { | |
Alert.alert( | |
'Exit app', | |
'Are you sure to exit?', |
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 default class SettingsScreen extends Component { | |
constructor (props) { | |
super(props) | |
this.file = null | |
this.state = { | |
avatarSource: '', | |
profileUrl: '', | |
username: '', | |
isLoading: false | |
} |
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
const UNIQUE_HANDLER_ID = 123 | |
export default class ChatScreen extends Component { | |
constructor(props) { | |
super(props) | |
this.backPress = this.handleBackPress.bind(this) | |
if (!this.props.navigation.state.params.channelUrl) { | |
Toast.show('Can not get channel url') | |
this.handleBackPress() | |
} else { |
OlderNewer