Skip to content

Instantly share code, notes, and snippets.

View josenaves's full-sized avatar
🍌
Bananas

José Naves Moura Neto josenaves

🍌
Bananas
View GitHub Profile
@josenaves
josenaves / build.gradle_app
Created November 9, 2017 13:45
Mapbox v6 - Android - Example project
# THIS IS example/android/app/build.gradle
apply plugin: "com.android.application"
import com.android.build.OutputFile
/**
* The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
* and bundleReleaseJsAndAssets).
* These basically call `react-native bundle` with the correct arguments during the Android build
@josenaves
josenaves / AddImageView
Created March 15, 2018 19:07
Example on how to create a image background with another layer on top
import React, { Component } from 'react';
import { Text, View, StyleSheet, Image, ImageBackground, Platform } from 'react-native';
const backgroundImage = require('../assets/background.png')
const iconCamera = require('../assets/camera_alt_white_48x48.png')
const styles = StyleSheet.create({
addImage: {
flexDirection: 'column',
justifyContent: 'center',