I hereby claim:
- I am phuochau on github.
- I am hauvo (https://keybase.io/hauvo) on keybase.
- I have a public key ASAYd5F03S5a1iTya8Mbp8y9ptLtOO2hedxc3wjC2dzSfAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import { | |
| findNodeHandle | |
| } from 'react-native' | |
| this.childItem.measureLayout(findNodeHandle(this.containerWrapper), (x, y, width, height) => { | |
| console.log('got measurement', x, y, width, height) | |
| }) |
| /** | |
| * A file must have structure as below: | |
| * { | |
| * name: 'file' | |
| * content: { | |
| * uri: 'file://abc', | |
| * data: 'file body', only use uri or data | |
| * name: 'avatar.jpg', | |
| * type: 'image/jpg' | |
| * } |
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | |
| buildscript { | |
| ext { | |
| buildToolsVersion = "27.0.3" | |
| minSdkVersion = 16 | |
| compileSdkVersion = 28 | |
| targetSdkVersion = 27 | |
| supportLibVersion = "27.1.1" | |
| } |
Step 1. Run command: expo eject in root of expo project.
Step 2. Choose 2nd option: Eject to ExpoKit and follow step to step from Expo command to eject it completely.
Step 3 (Optional) Install dependencies (normally, Expo will auto run this command)
yarn install
| defmodule Famiby.Helpers.AWS do | |
| alias Famiby.Helpers | |
| @bucket_name Application.get_env(:ex_aws, :bucket) | |
| @region Application.get_env(:ex_aws, :region) | |
| @env Application.get_env(:famiby, :env) | |
| def s3_signed_url(filename, acl \\ "public-read") do | |
| key = "#{@env}/#{filename}" | |
| content_type = Helpers.File.file_type(filename) |
| curl -d '{ | |
| "to": "REGISTRATION_TOKEN", | |
| "notification": { | |
| "title" : "Hello", | |
| "body" : "World" | |
| } | |
| }' \ | |
| -i -H "Application/json" \ | |
| -H "Content-type: application/json" \ | |
| -H "Authorization: key=SERVER_KEY" \ |