This file contains 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
const createProxy = require('http-proxy-middleware'); | |
const proxy = createProxy({ | |
target: 'https://apiko-marketplace-api-2019.herokuapp.com/', | |
pathRewrite: { | |
'^/api': '', | |
}, | |
changeOrigin: true, | |
}); |
This file contains 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
// Copyright (c) Facebook, Inc. and its affiliates. | |
// | |
// This source code is licensed under the MIT license found in the | |
// LICENSE file in the root directory of this source tree. | |
#include <fb/fbjni.h> | |
#include <folly/Memory.h> | |
#include <jsi/JSCRuntime.h> | |
#include <jsi/JSIDynamic.h> | |
#include <jsireact/JSIExecutor.h> |
This file contains 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, { Component } from 'react'; | |
import { Text, View } from 'react-native'; | |
import { inject } from 'mobx-react'; | |
const RootSpinner = () => <Text>Loading</Text>; | |
const EmptyCover = ({ retry }) => ( | |
<View> | |
<Text>Error</Text> <Text onPres={retry}>Retry</Text> | |
</View> | |
); |
This file contains 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, { useContext, forwardRef } from 'react'; | |
const MSTContext = React.createContext(null); | |
// eslint-disable-next-line prefer-destructuring | |
export const Provider = MSTContext.Provider; | |
export function useMst(mapStateToProps) { | |
const store = useContext(MSTContext); |
This file contains 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
{ | |
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
This file contains 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
const createProxy = require('http-proxy-middleware'); | |
const proxy = createProxy({ | |
target: 'https://apiko-marketplace-api-2019.herokuapp.com/', | |
pathRewrite: { | |
'^/api': '', | |
}, | |
changeOrigin: true, | |
}); |
This file contains 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
export default function useSuspendedProp(prop, timeout = 500) { | |
const initialValue = useRef(prop); | |
const [copy, setCopy] = useState(prop); | |
const timeoutRef = useRef(null); | |
useEffect(() => { | |
clearTimeout(timeoutRef.current); | |
if ( | |
initialValue.current === prop && |
This file contains 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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug Android", | |
"program": "${workspaceRoot}/.vscode/launchReactNative.js", | |
"type": "reactnative", |
This file contains 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 from 'react'; | |
import { | |
StyleSheet, | |
Text, | |
View, | |
Button, | |
} from 'react-native'; | |
import Reanimatable from './Reanimatable'; | |
import A from 'react-native-reanimated'; |
This file contains 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, { Component } from 'react'; | |
import { | |
Platform, | |
StyleSheet, | |
Text, | |
View, | |
Dimensions, | |
Alert, | |
} from 'react-native'; | |
import A, { Easing } from 'react-native-reanimated'; |