Skip to content

Instantly share code, notes, and snippets.

View GleidsonDaniel's full-sized avatar
:shipit:
Thinking

Gleidson Daniel Silva GleidsonDaniel

:shipit:
Thinking
View GitHub Profile
@GleidsonDaniel
GleidsonDaniel / emulator.command
Created November 20, 2022 13:46
Run android from file on mac
#!/bin/bash
emulator -avd AVD_NAME
# chmod u+x filename
import { StatusBar } from "expo-status-bar";
import React, { useState } from "react";
import { FlatList, StyleSheet, Text, View, Button } from "react-native";
const Item = ({ item }) => {
console.log("render item");
return (
<View style={{ width: 50, height: 50, backgroundColor: "red" }}>
<Text>{item}</Text>
</View>
const functions = require("firebase-functions");
const admin = require("firebase-admin");
admin.initializeApp(functions.config().firebase);
exports.pushConfig = functions.remoteConfig.onUpdate(() => {
return admin
.remoteConfig()
.getTemplate()
.then((remoteConfigTemplate) => {
const defaultVal =