Skip to content

Instantly share code, notes, and snippets.

View 35d's full-sized avatar
🌴
On vacation

Yuji Tsuburaya 35d

🌴
On vacation
View GitHub Profile
LayoutAnimation.configureNext(CustomLayoutSpring);
// アニメーション
const CustomLayoutSpring = {
duration: 400,
// ボール追加時のアニメーション
create: {
type: LayoutAnimation.Types.spring,
property: LayoutAnimation.Properties.scaleXY,
springDamping: 0.6,
},
// ボール移動時のアニメーション
// @flow
import React, { Component } from 'react';
import { LayoutAnimation, StyleSheet, Text, View } from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#333333',
},
@35d
35d / rails-setting.json
Last active January 29, 2019 01:33
VSCode settings
{
"ruby.rubocop.executePath": "",
"ruby.rubocop.onSave": true,
"editor.formatOnSave": true,
"editor.formatOnSaveTimeout": 5000,
"ruby.format": "rubocop"
}
@35d
35d / LottieAnimation.js
Created October 17, 2018 06:59
Lottie Animation Sample
// @flow
import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import LottieView from 'lottie-react-native';
import loading from '../assets/lottie/loading.json';
const styles = StyleSheet.create({
container: {
@35d
35d / AnimationCard.js
Created November 9, 2018 09:45
React Native Card Animation
// @flow
import React, { Component } from 'react';
import {
TouchableWithoutFeedback,
Animated,
Dimensions,
StyleSheet,
} from 'react-native';
{
"push": {
"prefix": "push",
"body": [
"Navigation.push(componentId, {",
" component: {",
" name: '',",
" passProps: {},",
" options: {",
" topBar: {",
@35d
35d / Heroku データベース設定.md
Last active February 10, 2019 09:32
📝 Heroku 設定メモ

複数 Heroku プロジェクトがある場合は --app <appName> を付ける必要がある

heroku config --app <appName>
heroku config:set DATABASE_URL='mysql2://<userName>:<password>@<host>/<database>?reconnect=true' --app <appName>
  • Xcode アーカイブから指示通り進む。
  • App Store Connect TestFlight からビルド番号を選択する。

1回目(失敗)

Missing Info.plist value - A value for the Info.plist key 'CFBundleIconName' is missing in the bundle 'org.reactjs.native.example.bukumoapp'. Apps built with iOS 11 or later SDK must supply app icons in an asset catalog and must also provide a value for this Info.plist key

アプリのアイコンが設定されていないとのこと。確かに設定していない。設定しなおして再度提出。
このページを使ってアイコンを作成した。 https://makeappicon.com/

バージョンを変更しておくことを忘れないように。

@35d
35d / index.js
Last active February 14, 2019 06:40
Hooks Test
import React from 'react';
import ReactDOM from 'react-dom';
import { getStateAndActions } from './reducer';
const Button = props => (
<button type="button" onClick={props.onClick}>
{props.children}
</button>
);