Skip to content

Instantly share code, notes, and snippets.

View vedovato's full-sized avatar
🏠
Working from home

Andrei Vedovato vedovato

🏠
Working from home
View GitHub Profile
@vedovato
vedovato / react-native-file-upload.js
Created June 13, 2019 18:07 — forked from nandorojo/react-native-file-upload.js
Upload a file to your server using react native / expo.
/*
IF YOU WANT TO UPLOAD ONE FILE, USE THE CODE BELOW.
SEE THE BOTTOM OF THE GIST TO SEE HOW TO UPLOAD MULTIPLE FILES.
HERE'S AN EXAMPLE SOMEONE MADE USING CLOUDINARY: https://gist.github.com/jamielob/5c1a5dc84e50e4507b71299d993dffec
*/
@vedovato
vedovato / api.json
Last active November 21, 2018 20:13
Proposta de API JSON
{
"comunicados": [
{
"title": "Encontro de Cordas Friccionadas - Projeto Guri",
"data_post": "2018-11-18T18:30:00-00:00",
"data_event": "20/11/2018",
"thumbnail": "https://cdn.flexnuvem.com.br/assets/192839183.png",
"content": "<p>Lorem ipsun dolor sit amet blalala tes mae maoe..... (texto completo)</p><br><p>Segundo paragrafo...</p>",
"type": 1
},
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/kI7MDMLdUkA"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
@vedovato
vedovato / index.md
Last active October 8, 2018 23:16
react-native: Images doesn't show up on android release apk (SOLUTION)

This seem to be necessary now if you use image assets in your project. Without executing the below command, my release android app variant won't show any required images 🤔

Paste this into your terminal, inside the project folder

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/

Keybase proof

I hereby claim:

  • I am vedovato on github.
  • I am vedovato (https://keybase.io/vedovato) on keybase.
  • I have a public key ASB7cD0AGrU-h75H7up9GyMP8rh4LAjSiBR2z65jKFc6hwo

To claim this, I am signing this object:

# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.
meteor-base@1.0.4 # Packages every Meteor app needs to have
mobile-experience@1.0.4 # Packages for a great mobile UX
mongo@1.1.16 # The database Meteor supports right now
blaze-html-templates@1.0.4 # Compile .html files into Meteor Blaze views
<div class="col-xs-12">
{{#afEachArrayItem name="noticias"}}
<button type="button" class="btn btn-primary autoform-remove-item">
<span class="glyphicon glyphicon-minus"></span>
</button>
{{> afQuickField name=this.current.title}}
{{/afEachArrayItem}}
'use strict'
import React, { Component } from 'react'
import { Text, View, ListView, StyleSheet, RefreshControl } from 'react-native'
import Meteor from 'react-native-meteor'
import MergeObj from 'object-merge'
import SETTINGS from '../utils/settings'
import NewsItem from '../components/NewsItem'
import Loading from '../components/Loading'
import Separator from '../components/Separator'