Skip to content

Instantly share code, notes, and snippets.

#!/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',
class Star {
double left;
double top;
double extraSize;
double angle;
int typeFade;
Star(
{@required this.left,
@required this.top,
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(() {
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;
// 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(
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))),
),
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;
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?',
export default class SettingsScreen extends Component {
constructor (props) {
super(props)
this.file = null
this.state = {
avatarSource: '',
profileUrl: '',
username: '',
isLoading: false
}
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 {