terminal:
npm i --save-dev rollup rollup-watch rollup-plugin-typescript typescript typings
npm i -S react react-dom
./node_modules/.bin/typings install react react-dom --save
mkdir src dist
touch src/index.tsxterminal:
npm i --save-dev rollup rollup-watch rollup-plugin-typescript typescript typings
npm i -S react react-dom
./node_modules/.bin/typings install react react-dom --save
mkdir src dist
touch src/index.tsxexport AWS_DEFAULT_REGION=ap-northeast-1
aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | \
awk '{print $2}' | grep -v ^$ | while read x; do echo "deleting $x" ; aws logs delete-log-group --log-group-name $x; done| Resources: | |
| AWSEBAutoScalingLaunchConfiguration: | |
| Type: "AWS::AutoScaling::LaunchConfiguration" | |
| Properties: | |
| SpotPrice: | |
| "Fn::GetOptionSetting": | |
| Namespace: "aws:elasticbeanstalk:application:environment" | |
| OptionName: "EC2_SPOT_PRICE" | |
| DefaultValue: {"Ref":"AWS::NoValue"} |
| import { useRef } from "react"; | |
| import { Animated, Easing } from "react-native"; | |
| export const useAnimation = function(initialValue: number = 0) { | |
| const endValue = initialValue === 0 ? 1 : 0; | |
| const animationValueRef = useRef<Animated.Value>(new Animated.Value(initialValue)); | |
| const setup = (config: Partial<Animated.TimingAnimationConfig> = {}) => | |
| Animated.timing(animationValueRef.current, { | |
| toValue: endValue, |
| - name: Restore yarn workspaces | |
| id: yarn-cache | |
| uses: actions/cache@master | |
| with: | |
| path: | | |
| node_modules | |
| */*/node_modules | |
| key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install dependencies | |
| if: steps.yarn-cache.outputs.cache-hit != 'true' |