This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { StatusBar } from 'expo-status-bar'; | |
import React, { useRef } from 'react'; | |
import { Animated, PanResponder, StyleSheet, Text, View } from 'react-native'; | |
const SWIPE = 80; | |
export default function App() { | |
const viewX = useRef(new Animated.Value(0)).current; | |
const interpolateX = viewX.interpolate({ | |
inputRange: [-SWIPE, 0], | |
outputRange: [-SWIPE, 0], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.yourpackage"> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> | |
<uses-permission android:name="android.permission.CAMERA" /> | |
<uses-permission android:name="android.permission.VIBRATION" /> | |
<application | |
android:name=".MainApplication" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keytool -list -v -keystore ./android/app/debug.keystore -alias 'androiddebugkey' -storepass android -keypass android |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { ReactNode } from 'react'; | |
import { Text, Platform, TextProps } from 'react-native'; | |
interface Props extends TextProps { | |
children: ReactNode; | |
} | |
const PublicText: React.FC<Props> = ({ style, children, ...props }: Props) => { | |
const defaultStyle = Platform.select({ | |
ios: { fontFamily: 'AppleSDGothicNeo-Regular' }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.tabSize": 2, | |
"editor.insertSpaces": true, | |
"editor.detectIndentation": true, | |
"cucumberautocomplete.steps": [ | |
// "test/features/step_definitions/*.js", | |
], | |
"typescript.validate.enable": false, | |
"eslint.validate": [ | |
"javascript", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "bitcoin", | |
"name": "Bitcoin", | |
"symbol": "BTC", | |
"rank": "1", | |
"price_usd": "10262.639669", | |
"price_btc": "1.0", | |
"24h_volume_usd": "16983997056.0", | |
"market_cap_usd": "183579760947", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Resie and auto rotate | |
* using https://github.com/blueimp/JavaScript-Load-Image | |
* @param {file from input} file | |
* @param {number} maxSize | |
*/ | |
function ResizeImage(file, maxSize=1024) { | |
return new Promise(function(resolve, reject) { | |
if (window.File && window.FileReader && window.FileList && window.Blob) { | |
/** |