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
/** | |
Author: Trinadh Koya | |
Created:Friday, 26 December 2016 | |
**/ | |
import React, { Component } from "react"; | |
import PropTypes from "prop-types"; | |
import { | |
Dimensions, | |
ImageBackground, |
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 {compose} from "redux"; | |
import {connect} from "react-redux"; | |
const composedHoc = compose( | |
connect(mapStateToProps), | |
withCurrentUser, | |
checkSession, | |
checkInternetConnection | |
); |
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 {combineReducers} from 'redux'; | |
import { LOGOUT } from '../common/constants'; | |
import { UnauthorizedErrorReducer } from '../common/commonReducers'; | |
import FirstReducer from './FirstReducer'; | |
import SecondReducer from './SecondReducer'; | |
import ThirdReducer from './ThirdReducer'; | |
/* In order to reset all reducers back to their initial states when user logout, | |
* rewrite rootReducer to assign 'undefined' to state when logout | |
* |
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
cardViewAndroid: { | |
elevation: 3, | |
width: width - 80, | |
height: width * 0.5, | |
shadowColor: colors.black, | |
shadowOpacity: 0.3, | |
shadowRadius: 3, | |
shadowColor: 'rgba(0,0,0,0.2)', | |
shadowOffset: {width: 1, height: 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
if (Text.defaultProps == null) { | |
Text.defaultProps = {}; | |
Text.defaultProps.allowFontScaling = false; | |
} | |
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 {FlatList, StyleSheet} from 'react-native'; | |
import {List, ListItem } from 'react-native-elements'; | |
class Users extends React.Component { | |
state = { | |
seed: 1, | |
page: 1, | |
users: [], | |
isLoading: false, |
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 convertOrdersToDeliveryTags = async (orders, address) => { | |
const deliveryTags = _.map(orders, (order) => { | |
return { | |
userName: order.get('user').get('name'), | |
productName: order.get('product').get('name'), | |
orderNumber: order.get('orderNumber'), | |
isPicked: !_.isEmpty(order.get('pickedAt')), | |
isDelivered: !_.isEmpty(order.get('deliveredAt')), | |
isReturned: !_.isEmpty(order.get('returnedAt')), |
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
buildscript { | |
ext { | |
buildToolsVersion = "28.0.3" | |
minSdkVersion = 19 | |
compileSdkVersion = 28 | |
targetSdkVersion = 28 | |
supportLibVersion = "28.0.0" | |
googlePlayServicesVersion = "16.0.0" | |
getVersionCode = { -> | |
try { |
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
defaultConfig { | |
applicationId "com.vicinia.tinmen" | |
minSdkVersion rootProject.ext.minSdkVersion | |
targetSdkVersion rootProject.ext.getVersionCode() | |
versionCode vcode | |
versionName "4.0" | |
multiDexEnabled true | |
} |