Skip to content

Commit 487a4a7

Browse files
authored
Merge pull request #11 from fidisys/feature/redux-saga
Feature/redux saga
2 parents 8a40f02 + b859438 commit 487a4a7

File tree

45 files changed

+2188
-128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2188
-128
lines changed

App.js

Lines changed: 0 additions & 114 deletions
This file was deleted.

App/App.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* Sample React Native App
3+
* https://github.com/facebook/react-native
4+
*
5+
* @format
6+
* @flow
7+
*/
8+
9+
import React from 'react';
10+
import store from './store/configureStore';
11+
import { Provider } from 'react-redux';
12+
13+
14+
import { Navigation } from './navigation';
15+
import NavigationService from './utils/navigationService';
16+
17+
const App = () => {
18+
return (
19+
20+
<Provider store={store}>
21+
<Navigation
22+
ref={navigatorRef => {
23+
NavigationService.setTopLevelNavigator(navigatorRef);
24+
}}
25+
/>
26+
</Provider>
27+
);
28+
};
29+
30+
31+
export default App;

App/assets/icons/pre-loader.gif

67.9 KB
Loading

App/assets/images/fidisys.png

16.4 KB
Loading

App/components/button.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import React from 'react';
2+
import { View, TouchableOpacity, Text } from 'react-native';
3+
4+
export const Button = ({ onClick, style, children }) => {
5+
return (
6+
<TouchableOpacity
7+
onPress={onClick}
8+
activeOpacity={0.7}
9+
style={[{
10+
padding: 6,
11+
minHeight: 20,
12+
borderRadius: 3,
13+
flexDirection: 'column',
14+
justifyContent: 'center',
15+
alignItems: 'center',
16+
shadowColor: 'rgba(0,0,0, .4)', // IOS
17+
shadowOffset: { height: 3, width: 2 }, // IOS
18+
shadowOpacity: 1, // IOS
19+
shadowRadius: 1, //IOS
20+
backgroundColor: '#fff',
21+
elevation: 3, // Android
22+
}, style]}>
23+
{children}
24+
</TouchableOpacity>
25+
)
26+
}

App/components/container.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from 'react';
2+
import { View,SafeAreaView } from 'react-native';
3+
import {GlobalStyle} from '../theme/global';
4+
5+
6+
export const Container = ({style,children}) => {
7+
return (
8+
<SafeAreaView style={{flex: 1}}>
9+
10+
<View style={[style,GlobalStyle.mainContainer]}>
11+
{children}
12+
</View>
13+
</SafeAreaView>
14+
)
15+
}

App/components/content.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from 'react';
2+
import { View, } from 'react-native';
3+
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'
4+
5+
6+
export const Content = ({style,children}) => {
7+
return (
8+
<KeyboardAwareScrollView
9+
automaticallyAdjustContentInsets={false}
10+
style={{flex: 1}}
11+
showsVerticalScrollIndicator
12+
contentContainerStyle={[{
13+
padding: 15,
14+
flexDirection: 'column'
15+
},style]}>
16+
{children}
17+
</KeyboardAwareScrollView>
18+
19+
)
20+
}

App/components/footer.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from 'react';
2+
import { View, Text } from 'react-native';
3+
4+
export const Footer = ({ style, children }) => {
5+
return (
6+
<View
7+
style={[{
8+
minHeight: 48,
9+
position: 'absolute',
10+
bottom: 0,
11+
borderTopColor: 'gray',
12+
borderTopWidth: 1,
13+
paddingHorizontal: 10,
14+
width: '100%',
15+
flexDirection: 'row',
16+
justifyContent: 'center',
17+
alignItems: 'center',
18+
backgroundColor: 'transparent'
19+
}, style]}>
20+
{children}
21+
</View>
22+
)
23+
}

App/components/header.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import React from 'react';
2+
import { View,StatusBar } from 'react-native';
3+
import { BarStyle } from '../theme/global';
4+
5+
export const Header = ({style,statusbarColor,barStyle = BarStyle ,children}) => {
6+
console.log(children)
7+
return (
8+
<View style={[{
9+
height: 48,
10+
paddingHorizontal: 10,
11+
width: '100%',
12+
flexDirection: 'row',
13+
justifyContent: 'space-between',
14+
alignItems: 'center',
15+
16+
backgroundColor: '#5297ff'
17+
},style]}>
18+
<StatusBar backgroundColor={statusbarColor} barStyle={barStyle}/>
19+
{children}
20+
</View>
21+
22+
)
23+
}
24+
25+
export const HeaderLeft = ({style,children}) => {
26+
return (
27+
<View style={[{
28+
flexDirection: 'row',
29+
minWidth: '15%',
30+
justifyContent: 'flex-start',
31+
alignItems: 'center'
32+
},style]}>
33+
{children}
34+
</View>
35+
)
36+
}
37+
export const HeaderBody = ({style,children}) => {
38+
return (
39+
<View style={[{
40+
flexDirection:'column',
41+
justifyContent: 'center',
42+
alignItems:'center'
43+
},style]}>
44+
{children}
45+
</View>
46+
)
47+
}
48+
export const HeaderRight = ({style,children}) => {
49+
return (
50+
<View style={[{
51+
flexDirection: 'row',
52+
minWidth: '15%',
53+
justifyContent: 'flex-end',
54+
alignItems: 'center'
55+
},style]}>
56+
{children}
57+
</View>
58+
)
59+
}

App/components/iconButton.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from 'react';
2+
import { TouchableOpacity } from 'react-native';
3+
4+
5+
export const IconButton = ({style,buttonEvent,children}) => {
6+
return (
7+
<TouchableOpacity onPress={buttonEvent}
8+
style={{
9+
minWidth: 30,
10+
minHeight: 30,
11+
flexDirection: 'column',
12+
justifyContent: 'center',
13+
alignItems: 'center'
14+
}}>
15+
{children}
16+
</TouchableOpacity>
17+
)
18+
}

0 commit comments

Comments
 (0)