Skip to content

Instantly share code, notes, and snippets.

View lebreRafael's full-sized avatar

Rafael Bonalume Lebre lebreRafael

View GitHub Profile
@lebreRafael
lebreRafael / _document.js
Last active September 6, 2023 06:50
NextJS inline CSS files
// Code "forked" from https://stackoverflow.com/a/66430461/4788966
import Document, {
Main,
NextScript,
Head,
Html
} from 'next/document'
import {readFileSync} from "fs"
import {join} from "path"
@lebreRafael
lebreRafael / App.js
Last active September 21, 2018 19:59
[Expo Camera] takePictureAsync() quality not working as expected
import React, {Component} from 'react';
import {Image, SafeAreaView, Text, TouchableOpacity, View} from 'react-native';
import {Camera, Permissions} from 'expo';
class CameraComponent extends Component {
constructor () {
super();
this.state = {
hasCameraPermission: null,
imageSrc: null,