yarn add react-native-configreact-native link react-native-config- Create
.envfiles for each configuration. Ex:.env.dev,.env.prod, etc Ex:
API_ENDPOINT=https://api.myresource.com/dev
ENV=dev
yarn add react-native-configreact-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; |