NAVIGATION OPTIONS
export const StackNavigationOptions = (params = {}) => {
let { headerStyle, headerTitleStyle, ...others } = params
if (!headerStyle) headerStyle = {}
if (!headerTitleStyle) headerTitleStyle = {}
#!/bin/bash | |
PROJECT_DIR="ios/Invygo" | |
INFOPLIST_FILE="Info.plist" | |
INFOPLIST_DIR="${PROJECT_DIR}/${INFOPLIST_FILE}" | |
PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') | |
# Update plist with new values |
#!/bin/bash | |
PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') | |
NEW_PACKAGE_VERSION="${PACKAGE_VERSION//./_}" | |
BRANCH_NAME="release_${NEW_PACKAGE_VERSION}" | |
if [ `git branch -ra | egrep "remotes/origin/${BRANCH_NAME}$"` ] | |
then | |
echo "Branch name $BRANCH_NAME already exists!" | |
git checkout $BRANCH_NAME |
curl -d '{ | |
"to": "REGISTRATION_TOKEN", | |
"notification": { | |
"title" : "Hello", | |
"body" : "World" | |
} | |
}' \ | |
-i -H "Application/json" \ | |
-H "Content-type: application/json" \ | |
-H "Authorization: key=SERVER_KEY" \ |
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) |
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
// 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" | |
} |
/** | |
* 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' | |
* } |