yarn add react-native-config
react-native link react-native-config
- Create
.env
files for each configuration. Ex:.env.dev
,.env.prod
, etc Ex:
API_ENDPOINT=https://api.myresource.com/dev
ENV=dev
yarn add react-native-config
react-native link react-native-config
.env
files for each configuration. Ex: .env.dev
, .env.prod
, etc
Ex:API_ENDPOINT=https://api.myresource.com/dev
ENV=dev
/** | |
* inspired by jdduke (http://jsbin.com/qofuwa/2/edit) | |
*/ | |
var preventPullToRefresh = (function preventPullToRefresh(lastTouchY) { | |
lastTouchY = lastTouchY || 0; | |
var maybePrevent = false; |