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
| 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 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 {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 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 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 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 {compose} from "redux"; | |
| import {connect} from "react-redux"; | |
| const composedHoc = compose( | |
| connect(mapStateToProps), | |
| withCurrentUser, | |
| checkSession, | |
| checkInternetConnection | |
| ); |
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
| /** | |
| Author: Trinadh Koya | |
| Created:Friday, 26 December 2016 | |
| **/ | |
| import React, { Component } from "react"; | |
| import PropTypes from "prop-types"; | |
| import { | |
| Dimensions, | |
| ImageBackground, |
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 React, {Component} from 'react' | |
| import {connect} from 'react-redux' | |
| export default function (ComposedComponent) { | |
| class Authentication extends Component { | |
| componentWillMount() { | |
| if (!this.props.authenticated) this.props.navigation.navigate('LoginForm') | |
| } |
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 React from 'react' | |
| import PropTypes from 'prop-types'; | |
| import Svg, {G, Path} from "react-native-svg"; | |
| class ImageIco extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| } | |
| render() { |
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 React, {Component} from 'react' | |
| import {connect} from 'react-redux' | |
| export default function (ComposedComponent) { | |
| class Authentication extends Component { | |
| componentWillMount() { | |
| if (!this.props.authenticated) this.props.navigation.navigate('LoginForm') | |
| } |
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
| public class NetworkHelper extends Fragment { | |
| public static final String TAG = "NetworkHelper"; | |
| public static final String CHECK_INTERNET = "network_connection"; | |
| private Activity mActivity; | |
| AlertDialog mAlertDialog = null; | |
| private BroadcastReceiver onNotice = new BroadcastReceiver() { | |
| @Override |