Skip to content

Commit

Permalink
Merge pull request #11 from fidisys/feature/redux-saga
Browse files Browse the repository at this point in the history
Feature/redux saga
  • Loading branch information
justinkx authored Oct 11, 2019
2 parents 8a40f02 + b859438 commit 487a4a7
Show file tree
Hide file tree
Showing 45 changed files with 2,188 additions and 128 deletions.
114 changes: 0 additions & 114 deletions App.js

This file was deleted.

31 changes: 31 additions & 0 deletions App/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/

import React from 'react';
import store from './store/configureStore';
import { Provider } from 'react-redux';


import { Navigation } from './navigation';
import NavigationService from './utils/navigationService';

const App = () => {
return (

<Provider store={store}>
<Navigation
ref={navigatorRef => {
NavigationService.setTopLevelNavigator(navigatorRef);
}}
/>
</Provider>
);
};


export default App;
Binary file added App/assets/icons/pre-loader.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added App/assets/images/fidisys.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions App/components/button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from 'react';
import { View, TouchableOpacity, Text } from 'react-native';

export const Button = ({ onClick, style, children }) => {
return (
<TouchableOpacity
onPress={onClick}
activeOpacity={0.7}
style={[{
padding: 6,
minHeight: 20,
borderRadius: 3,
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
shadowColor: 'rgba(0,0,0, .4)', // IOS
shadowOffset: { height: 3, width: 2 }, // IOS
shadowOpacity: 1, // IOS
shadowRadius: 1, //IOS
backgroundColor: '#fff',
elevation: 3, // Android
}, style]}>
{children}
</TouchableOpacity>
)
}
15 changes: 15 additions & 0 deletions App/components/container.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react';
import { View,SafeAreaView } from 'react-native';
import {GlobalStyle} from '../theme/global';


export const Container = ({style,children}) => {
return (
<SafeAreaView style={{flex: 1}}>

<View style={[style,GlobalStyle.mainContainer]}>
{children}
</View>
</SafeAreaView>
)
}
20 changes: 20 additions & 0 deletions App/components/content.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react';
import { View, } from 'react-native';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'


export const Content = ({style,children}) => {
return (
<KeyboardAwareScrollView
automaticallyAdjustContentInsets={false}
style={{flex: 1}}
showsVerticalScrollIndicator
contentContainerStyle={[{
padding: 15,
flexDirection: 'column'
},style]}>
{children}
</KeyboardAwareScrollView>

)
}
23 changes: 23 additions & 0 deletions App/components/footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from 'react';
import { View, Text } from 'react-native';

export const Footer = ({ style, children }) => {
return (
<View
style={[{
minHeight: 48,
position: 'absolute',
bottom: 0,
borderTopColor: 'gray',
borderTopWidth: 1,
paddingHorizontal: 10,
width: '100%',
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
backgroundColor: 'transparent'
}, style]}>
{children}
</View>
)
}
59 changes: 59 additions & 0 deletions App/components/header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import React from 'react';
import { View,StatusBar } from 'react-native';
import { BarStyle } from '../theme/global';

export const Header = ({style,statusbarColor,barStyle = BarStyle ,children}) => {
console.log(children)
return (
<View style={[{
height: 48,
paddingHorizontal: 10,
width: '100%',
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',

backgroundColor: '#5297ff'
},style]}>
<StatusBar backgroundColor={statusbarColor} barStyle={barStyle}/>
{children}
</View>

)
}

export const HeaderLeft = ({style,children}) => {
return (
<View style={[{
flexDirection: 'row',
minWidth: '15%',
justifyContent: 'flex-start',
alignItems: 'center'
},style]}>
{children}
</View>
)
}
export const HeaderBody = ({style,children}) => {
return (
<View style={[{
flexDirection:'column',
justifyContent: 'center',
alignItems:'center'
},style]}>
{children}
</View>
)
}
export const HeaderRight = ({style,children}) => {
return (
<View style={[{
flexDirection: 'row',
minWidth: '15%',
justifyContent: 'flex-end',
alignItems: 'center'
},style]}>
{children}
</View>
)
}
18 changes: 18 additions & 0 deletions App/components/iconButton.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from 'react';
import { TouchableOpacity } from 'react-native';


export const IconButton = ({style,buttonEvent,children}) => {
return (
<TouchableOpacity onPress={buttonEvent}
style={{
minWidth: 30,
minHeight: 30,
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center'
}}>
{children}
</TouchableOpacity>
)
}
17 changes: 17 additions & 0 deletions App/components/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Container } from './container';
import { Header,HeaderBody,HeaderRight,HeaderLeft } from './header';
import { Content } from './content';
import { IconButton } from './iconButton';
import { Button } from './button';
import { Footer } from './footer';
export {
Container,
Header,
HeaderBody,
HeaderRight,
HeaderLeft,
Content,
Button,
Footer,
IconButton
}
Loading

0 comments on commit 487a4a7

Please sign in to comment.