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 { createStore, applyMiddleware, compose } from 'redux'; | |
| import createSagaMiddleware from 'redux-saga'; | |
| import { persistStore, persistCombineReducers } from 'redux-persist'; | |
| import storage from 'redux-persist/es/storage'; | |
| import rootSaga from './sagas'; | |
| /* Reducers */ |
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 { Dimensions, StatusBar } from 'react-native'; | |
| const { width, height } = Dimensions.get('window'); | |
| const guidelineBaseWidth = 375; | |
| const guidelineBaseHeight = 812; | |
| const scale = size => (width / guidelineBaseWidth) * size; | |
| const verticalScale = size => (height / guidelineBaseHeight) * size; | |
| const moderateScale = (size, factor = 0.5) => size + (scale(size) - size) * factor; | |
| const moderateScaleVertical = (size, factor = 0.5) => size + (verticalScale(size) - size) * factor; |
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 { PixelRatio, Dimensions } from 'react-native' | |
| const detectDevice = (deviceType) => navigator.userAgent.match(deviceType) | |
| const windowSize = Dimensions.get('window') | |
| let pixelDensity = PixelRatio.get() | |
| let width = windowSize.width | |
| let height = windowSize.height | |
| let adjustedWidth = width * pixelDensity | |
| let adjustedHeight = height * pixelDensity |
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
| export function debounce(func, wait, immediate) { | |
| let timeout | |
| return function () { | |
| const context = this, | |
| args = arguments | |
| const later = function () { | |
| timeout = null | |
| if (!immediate) { | |
| func.apply(context, args) | |
| } |
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
| const setDefaultConfig = () => { | |
| let components = [Text] // Components to modify. | |
| const customProps = { style: {} } | |
| const TextRender = components[0].render | |
| const initialDefaultProps = components[0].constructor.defaultProps | |
| components[0].render = function render(props) { | |
| let oldProps = { ...props } |
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
| i386 : iPhone Simulator | |
| x86_64 : iPhone Simulator | |
| iPhone1,1 : iPhone | |
| iPhone1,2 : iPhone 3G | |
| iPhone2,1 : iPhone 3GS | |
| iPhone3,1 : iPhone 4 | |
| iPhone3,2 : iPhone 4 GSM Rev A | |
| iPhone3,3 : iPhone 4 CDMA | |
| iPhone4,1 : iPhone 4S | |
| iPhone5,1 : iPhone 5 (GSM) |
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
| <?php | |
| session_start(); | |
| $LINKEDIN_CFG = array( | |
| 'client_id' => 'YOUR_CLIENT_ID', | |
| 'client_secret' => 'YOUR_CLIENT_SECRET', | |
| 'redirect' => 'http://localhost/nearby-palce-locator/places.php', | |
| 'scope' => 'r_liteprofile', | |
| ); |