mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-18 04:37:51 +01:00
added action button
This commit is contained in:
@@ -2,20 +2,83 @@ import React, {useState, useEffect} from 'react';
|
|||||||
import NavigationService, {
|
import NavigationService, {
|
||||||
AppContainer,
|
AppContainer,
|
||||||
} from './src/services/NavigationService';
|
} from './src/services/NavigationService';
|
||||||
import {StatusBar} from 'react-native';
|
import {StatusBar, View, SafeAreaView, TouchableOpacity} from 'react-native';
|
||||||
|
import {COLOR_SCHEME, SIZE, opacity, WEIGHT} from './src/common/common';
|
||||||
|
import Icon from 'react-native-vector-icons/Ionicons';
|
||||||
|
import ActionButton from 'react-native-action-button';
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
|
const [colors, setColors] = useState(COLOR_SCHEME);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
StatusBar.setBackgroundColor('transparent');
|
StatusBar.setBackgroundColor('transparent');
|
||||||
StatusBar.setTranslucent(true);
|
StatusBar.setTranslucent(true);
|
||||||
StatusBar.setBarStyle('dark-content');
|
StatusBar.setBarStyle('dark-content');
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<AppContainer
|
<>
|
||||||
ref={navigatorRef => {
|
<AppContainer
|
||||||
NavigationService.setTopLevelNavigator(navigatorRef);
|
ref={navigatorRef => {
|
||||||
}}
|
NavigationService.setTopLevelNavigator(navigatorRef);
|
||||||
/>
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<ActionButton elevation={5} buttonColor={colors.accent}>
|
||||||
|
<ActionButton.Item
|
||||||
|
buttonColor="#9b59b6"
|
||||||
|
textStyle={{
|
||||||
|
fontFamily: WEIGHT.regular,
|
||||||
|
color: 'white',
|
||||||
|
}}
|
||||||
|
title=""
|
||||||
|
hideShadow={true}
|
||||||
|
onPress={() => console.log('notes tapped!')}>
|
||||||
|
<Icon
|
||||||
|
name="md-create"
|
||||||
|
style={{
|
||||||
|
fontSize: 20,
|
||||||
|
height: 22,
|
||||||
|
color: 'white',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</ActionButton.Item>
|
||||||
|
<ActionButton.Item
|
||||||
|
textStyle={{
|
||||||
|
fontFamily: WEIGHT.regular,
|
||||||
|
color: 'white',
|
||||||
|
}}
|
||||||
|
hideShadow={true}
|
||||||
|
buttonColor="#3498db"
|
||||||
|
title=""
|
||||||
|
onPress={() => {}}>
|
||||||
|
<Icon
|
||||||
|
name="ios-list"
|
||||||
|
style={{
|
||||||
|
fontSize: 20,
|
||||||
|
height: 22,
|
||||||
|
color: 'white',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</ActionButton.Item>
|
||||||
|
<ActionButton.Item
|
||||||
|
textStyle={{
|
||||||
|
fontFamily: WEIGHT.regular,
|
||||||
|
color: 'white',
|
||||||
|
}}
|
||||||
|
hideShadow={true}
|
||||||
|
buttonColor="#1abc9c"
|
||||||
|
title=""
|
||||||
|
onPress={() => {}}>
|
||||||
|
<Icon
|
||||||
|
name="ios-clock"
|
||||||
|
style={{
|
||||||
|
fontSize: 20,
|
||||||
|
height: 22,
|
||||||
|
color: 'white',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</ActionButton.Item>
|
||||||
|
</ActionButton>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
96
apps/mobile/src/components/ListItem/index.js
Normal file
96
apps/mobile/src/components/ListItem/index.js
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
import React, {useState} from 'react';
|
||||||
|
import {View, Text, TouchableOpacity, Platform, Dimensions} from 'react-native';
|
||||||
|
import {
|
||||||
|
COLOR_SCHEME,
|
||||||
|
SIZE,
|
||||||
|
br,
|
||||||
|
ph,
|
||||||
|
pv,
|
||||||
|
opacity,
|
||||||
|
FONT,
|
||||||
|
WEIGHT,
|
||||||
|
} from '../../common/common';
|
||||||
|
import Icon from 'react-native-vector-icons/Ionicons';
|
||||||
|
import {getElevation} from '../../utils/utils';
|
||||||
|
import {FlatList} from 'react-native-gesture-handler';
|
||||||
|
const w = Dimensions.get('window').width;
|
||||||
|
const h = Dimensions.get('window').height;
|
||||||
|
export const ListItem = props => {
|
||||||
|
const [colors, setColors] = useState(COLOR_SCHEME);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<View
|
||||||
|
style={{
|
||||||
|
...getElevation(10),
|
||||||
|
width: '90%',
|
||||||
|
marginVertical: Platform.OS === 'ios' ? h * 0.01 : '0%',
|
||||||
|
alignSelf: 'center',
|
||||||
|
borderRadius: br,
|
||||||
|
backgroundColor: '#f0f0f0',
|
||||||
|
|
||||||
|
marginBottom: 20,
|
||||||
|
padding: 5,
|
||||||
|
}}>
|
||||||
|
<View>
|
||||||
|
<View
|
||||||
|
style={{
|
||||||
|
width: '100%',
|
||||||
|
flexDirection: 'row',
|
||||||
|
justifyContent: 'space-between',
|
||||||
|
alignItems: 'center',
|
||||||
|
paddingHorizontal: ph,
|
||||||
|
}}>
|
||||||
|
<Text
|
||||||
|
numberOfLines={1}
|
||||||
|
style={{
|
||||||
|
color: colors.pri,
|
||||||
|
fontSize: SIZE.md,
|
||||||
|
fontFamily: WEIGHT.bold,
|
||||||
|
maxWidth: '100%',
|
||||||
|
}}>
|
||||||
|
Shopping List
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
<View
|
||||||
|
style={{
|
||||||
|
width: '20%',
|
||||||
|
justifyContent: 'space-between',
|
||||||
|
flexDirection: 'row',
|
||||||
|
alignItems: 'center',
|
||||||
|
}}>
|
||||||
|
<Icon name="md-share-alt" size={SIZE.lg} color={colors.icon} />
|
||||||
|
<Icon name="md-star" size={SIZE.lg} color={colors.icon} />
|
||||||
|
<Icon name="md-more" size={SIZE.lg} color={colors.icon} />
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
<View>
|
||||||
|
<FlatList
|
||||||
|
data={['1 kg wheat flour', '1/2 kg bread']}
|
||||||
|
renderItem={({item, index}) => (
|
||||||
|
<TouchableOpacity
|
||||||
|
style={{
|
||||||
|
flexDirection: 'row',
|
||||||
|
}}>
|
||||||
|
<Text
|
||||||
|
style={{
|
||||||
|
color: 'white',
|
||||||
|
...getElevation(5),
|
||||||
|
paddingVertical: pv - 5,
|
||||||
|
paddingHorizontal: ph - 5,
|
||||||
|
backgroundColor: colors.accent,
|
||||||
|
marginVertical: 5,
|
||||||
|
borderRadius: br,
|
||||||
|
marginHorizontal: 10,
|
||||||
|
fontFamily: WEIGHT.regular,
|
||||||
|
}}>
|
||||||
|
{item}
|
||||||
|
</Text>
|
||||||
|
</TouchableOpacity>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -37,24 +37,46 @@ const NoteItem = props => {
|
|||||||
backgroundColor: '#f0f0f0',
|
backgroundColor: '#f0f0f0',
|
||||||
marginVertical: h * 0.015,
|
marginVertical: h * 0.015,
|
||||||
borderRadius: br,
|
borderRadius: br,
|
||||||
flexDirection: 'row',
|
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
padding: pv,
|
padding: pv,
|
||||||
}}>
|
}}>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
width: '92%',
|
width: '100%',
|
||||||
justifyContent: 'center',
|
flexDirection: 'row',
|
||||||
alignItems: 'flex-start',
|
justifyContent: 'space-between',
|
||||||
|
alignItems: 'center',
|
||||||
}}>
|
}}>
|
||||||
<Text
|
<Text
|
||||||
|
numberOfLines={1}
|
||||||
style={{
|
style={{
|
||||||
|
color: colors.pri,
|
||||||
fontSize: SIZE.md,
|
fontSize: SIZE.md,
|
||||||
fontFamily: WEIGHT.bold,
|
fontFamily: WEIGHT.bold,
|
||||||
|
maxWidth: '100%',
|
||||||
}}>
|
}}>
|
||||||
{item.title}
|
{item.title}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
|
<View
|
||||||
|
style={{
|
||||||
|
width: '20%',
|
||||||
|
justifyContent: 'space-between',
|
||||||
|
flexDirection: 'row',
|
||||||
|
alignItems: 'center',
|
||||||
|
}}>
|
||||||
|
<Icon name="md-share-alt" size={SIZE.lg} color={colors.icon} />
|
||||||
|
<Icon name="md-star" size={SIZE.lg} color={colors.icon} />
|
||||||
|
<Icon name="md-more" size={SIZE.lg} color={colors.icon} />
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
<View
|
||||||
|
style={{
|
||||||
|
justifyContent: 'center',
|
||||||
|
alignItems: 'flex-start',
|
||||||
|
}}>
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
fontSize: SIZE.xs + 1,
|
fontSize: SIZE.xs + 1,
|
||||||
@@ -74,15 +96,6 @@ const NoteItem = props => {
|
|||||||
{item.timestamp + ' '}
|
{item.timestamp + ' '}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<TouchableOpacity
|
|
||||||
style={{
|
|
||||||
width: '8%',
|
|
||||||
justifyContent: 'center',
|
|
||||||
alignItems: 'center',
|
|
||||||
minHeight: 60,
|
|
||||||
}}>
|
|
||||||
<Icon name="md-more" size={SIZE.xl} color={colors.accent} />
|
|
||||||
</TouchableOpacity>
|
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ import Icon from 'react-native-vector-icons/Ionicons';
|
|||||||
import {Reminder} from '../Reminder';
|
import {Reminder} from '../Reminder';
|
||||||
import {getElevation} from '../../utils/utils';
|
import {getElevation} from '../../utils/utils';
|
||||||
import NoteItem from '../NoteItem';
|
import NoteItem from '../NoteItem';
|
||||||
|
import NavigationService from '../../services/NavigationService';
|
||||||
const w = Dimensions.get('window').width;
|
const w = Dimensions.get('window').width;
|
||||||
const h = Dimensions.get('window').height;
|
const h = Dimensions.get('window').height;
|
||||||
|
|
||||||
@@ -72,12 +73,16 @@ export const RecentList = () => {
|
|||||||
{
|
{
|
||||||
name: 'Reminders',
|
name: 'Reminders',
|
||||||
icon: 'ios-clock',
|
icon: 'ios-clock',
|
||||||
func: () => {},
|
func: () => {
|
||||||
|
NavigationService.navigate('Reminders');
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Lists',
|
name: 'Lists',
|
||||||
icon: 'ios-list',
|
icon: 'ios-list',
|
||||||
func: () => {},
|
func: () => {
|
||||||
|
NavigationService.navigate('Lists');
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -14,63 +14,89 @@ import Icon from 'react-native-vector-icons/Ionicons';
|
|||||||
import {getElevation} from '../../utils/utils';
|
import {getElevation} from '../../utils/utils';
|
||||||
const w = Dimensions.get('window').width;
|
const w = Dimensions.get('window').width;
|
||||||
const h = Dimensions.get('window').height;
|
const h = Dimensions.get('window').height;
|
||||||
export const Reminder = () => {
|
export const Reminder = props => {
|
||||||
const [colors, setColors] = useState(COLOR_SCHEME);
|
const [colors, setColors] = useState(COLOR_SCHEME);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TouchableOpacity
|
<View
|
||||||
activeOpacity={opacity}
|
|
||||||
style={{
|
style={{
|
||||||
...getElevation(10),
|
...getElevation(10),
|
||||||
width: '90%',
|
width: '90%',
|
||||||
marginVertical: Platform.OS === 'ios' ? h * 0.01 : '0%',
|
marginVertical: Platform.OS === 'ios' ? h * 0.01 : '0%',
|
||||||
alignSelf: 'center',
|
alignSelf: 'center',
|
||||||
borderRadius: br,
|
borderRadius: br,
|
||||||
backgroundColor: colors.accent,
|
backgroundColor: props.invert ? '#f0f0f0' : colors.accent,
|
||||||
paddingHorizontal: ph,
|
paddingHorizontal: ph,
|
||||||
marginBottom: 20,
|
marginBottom: 20,
|
||||||
padding: 5,
|
padding: 5,
|
||||||
}}>
|
}}>
|
||||||
<View>
|
<View>
|
||||||
<Text
|
<View
|
||||||
numberOfLines={1}
|
|
||||||
style={{
|
style={{
|
||||||
width: '100%',
|
width: '100%',
|
||||||
maxWidth: '100%',
|
flexDirection: 'row',
|
||||||
|
justifyContent: 'space-between',
|
||||||
|
alignItems: 'center',
|
||||||
}}>
|
}}>
|
||||||
<Text
|
<Text
|
||||||
numberOfLines={1}
|
numberOfLines={1}
|
||||||
style={{
|
style={{
|
||||||
color: 'white',
|
color: props.invert ? colors.pri : 'white',
|
||||||
fontSize: SIZE.lg,
|
fontSize: SIZE.md,
|
||||||
fontFamily: WEIGHT.bold,
|
fontFamily: WEIGHT.bold,
|
||||||
maxWidth: '100%',
|
maxWidth: '100%',
|
||||||
}}>
|
}}>
|
||||||
Pay Utility Bills
|
Pay Utility Bills
|
||||||
</Text>
|
</Text>
|
||||||
</Text>
|
|
||||||
|
<View
|
||||||
|
style={{
|
||||||
|
width: '20%',
|
||||||
|
justifyContent: 'space-between',
|
||||||
|
flexDirection: 'row',
|
||||||
|
alignItems: 'center',
|
||||||
|
}}>
|
||||||
|
<Icon
|
||||||
|
name="md-share-alt"
|
||||||
|
size={SIZE.lg}
|
||||||
|
color={props.invert ? colors.icon : 'white'}
|
||||||
|
/>
|
||||||
|
<Icon
|
||||||
|
name="md-star"
|
||||||
|
size={SIZE.lg}
|
||||||
|
color={props.invert ? colors.icon : 'white'}
|
||||||
|
/>
|
||||||
|
<Icon
|
||||||
|
name="md-more"
|
||||||
|
size={SIZE.lg}
|
||||||
|
color={props.invert ? colors.icon : 'white'}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
width: '100%',
|
width: '100%',
|
||||||
justifyContent: 'space-between',
|
justifyContent: 'space-between',
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
alignItems: 'flex-end',
|
alignItems: 'center',
|
||||||
}}>
|
}}>
|
||||||
<Text
|
<Text
|
||||||
|
numberOfLines={5}
|
||||||
style={{
|
style={{
|
||||||
fontFamily: WEIGHT.regular,
|
fontFamily: WEIGHT.regular,
|
||||||
fontSize: SIZE.xs,
|
fontSize: SIZE.xs,
|
||||||
color: 'white',
|
color: props.invert ? colors.icon : 'white',
|
||||||
marginBottom: 3,
|
marginBottom: 3,
|
||||||
|
maxWidth: '60%',
|
||||||
}}>
|
}}>
|
||||||
{'\n'}
|
{'\n'}
|
||||||
Amount 5000 RS
|
Pay all the bills
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
color: 'white',
|
color: props.invert ? colors.accent : 'white',
|
||||||
fontSize: SIZE.xxl,
|
fontSize: SIZE.xxl,
|
||||||
fontFamily: WEIGHT.light,
|
fontFamily: WEIGHT.light,
|
||||||
}}>
|
}}>
|
||||||
@@ -90,6 +116,6 @@ export const Reminder = () => {
|
|||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</TouchableOpacity>
|
</View>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ import {createAppContainer, NavigationActions} from 'react-navigation';
|
|||||||
import {createStackNavigator} from 'react-navigation-stack';
|
import {createStackNavigator} from 'react-navigation-stack';
|
||||||
import Home from '../views/Home/index';
|
import Home from '../views/Home/index';
|
||||||
import Editor from '../views/Editor';
|
import Editor from '../views/Editor';
|
||||||
|
import Reminders from '../views/Reminders';
|
||||||
|
import Lists from '../views/Lists';
|
||||||
|
|
||||||
const TopLevelNavigator = createStackNavigator(
|
const TopLevelNavigator = createStackNavigator(
|
||||||
{
|
{
|
||||||
@@ -11,6 +13,12 @@ const TopLevelNavigator = createStackNavigator(
|
|||||||
Editor: {
|
Editor: {
|
||||||
screen: Editor,
|
screen: Editor,
|
||||||
},
|
},
|
||||||
|
Reminders: {
|
||||||
|
screen: Reminders,
|
||||||
|
},
|
||||||
|
Lists: {
|
||||||
|
screen: Lists,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
initialRouteName: 'Home',
|
initialRouteName: 'Home',
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import {
|
|||||||
Image,
|
Image,
|
||||||
SafeAreaView,
|
SafeAreaView,
|
||||||
Platform,
|
Platform,
|
||||||
|
FlatList,
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import NavigationService from '../../services/NavigationService';
|
import NavigationService from '../../services/NavigationService';
|
||||||
import {
|
import {
|
||||||
@@ -28,7 +29,6 @@ import {Search} from '../../components/SearchInput';
|
|||||||
import {Reminder} from '../../components/Reminder';
|
import {Reminder} from '../../components/Reminder';
|
||||||
import {RecentList} from '../../components/Recents';
|
import {RecentList} from '../../components/Recents';
|
||||||
import {getElevation} from '../../utils/utils';
|
import {getElevation} from '../../utils/utils';
|
||||||
import {FlatList} from 'react-native-gesture-handler';
|
|
||||||
const w = Dimensions.get('window').width;
|
const w = Dimensions.get('window').width;
|
||||||
const h = Dimensions.get('window').height;
|
const h = Dimensions.get('window').height;
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,64 @@
|
|||||||
|
import React, {useEffect, useState} from 'react';
|
||||||
|
import {
|
||||||
|
ScrollView,
|
||||||
|
View,
|
||||||
|
Text,
|
||||||
|
TouchableOpacity,
|
||||||
|
Dimensions,
|
||||||
|
Image,
|
||||||
|
SafeAreaView,
|
||||||
|
Platform,
|
||||||
|
} from 'react-native';
|
||||||
|
import NavigationService from '../../services/NavigationService';
|
||||||
|
import {
|
||||||
|
COLOR_SCHEME,
|
||||||
|
SIZE,
|
||||||
|
br,
|
||||||
|
ph,
|
||||||
|
pv,
|
||||||
|
opacity,
|
||||||
|
FONT,
|
||||||
|
WEIGHT,
|
||||||
|
} from '../../common/common';
|
||||||
|
import Icon from 'react-native-vector-icons/Ionicons';
|
||||||
|
import {Reminder} from '../../components/Reminder';
|
||||||
|
import {ListItem} from '../../components/ListItem';
|
||||||
|
|
||||||
|
const w = Dimensions.get('window').width;
|
||||||
|
const h = Dimensions.get('window').height;
|
||||||
|
|
||||||
|
export const Lists = ({navigation}) => {
|
||||||
|
const [colors, setColors] = useState(COLOR_SCHEME);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<SafeAreaView>
|
||||||
|
<View
|
||||||
|
style={{
|
||||||
|
flexDirection: 'row',
|
||||||
|
justifyContent: 'space-between',
|
||||||
|
alignItems: 'center',
|
||||||
|
paddingHorizontal: '5%',
|
||||||
|
marginTop: Platform.OS == 'ios' ? h * 0.02 : h * 0.04,
|
||||||
|
marginBottom: h * 0.04,
|
||||||
|
}}>
|
||||||
|
<Text
|
||||||
|
style={{
|
||||||
|
fontSize: SIZE.xxl,
|
||||||
|
color: colors.pri,
|
||||||
|
fontFamily: WEIGHT.bold,
|
||||||
|
}}>
|
||||||
|
Lists
|
||||||
|
</Text>
|
||||||
|
<Icon name="md-more" color={colors.icon} size={SIZE.xxl} />
|
||||||
|
</View>
|
||||||
|
|
||||||
|
<ListItem />
|
||||||
|
</SafeAreaView>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
Lists.navigationOptions = {
|
||||||
|
header: null,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Lists;
|
||||||
|
|||||||
@@ -0,0 +1,63 @@
|
|||||||
|
import React, {useEffect, useState} from 'react';
|
||||||
|
import {
|
||||||
|
ScrollView,
|
||||||
|
View,
|
||||||
|
Text,
|
||||||
|
TouchableOpacity,
|
||||||
|
Dimensions,
|
||||||
|
Image,
|
||||||
|
SafeAreaView,
|
||||||
|
Platform,
|
||||||
|
} from 'react-native';
|
||||||
|
import NavigationService from '../../services/NavigationService';
|
||||||
|
import {
|
||||||
|
COLOR_SCHEME,
|
||||||
|
SIZE,
|
||||||
|
br,
|
||||||
|
ph,
|
||||||
|
pv,
|
||||||
|
opacity,
|
||||||
|
FONT,
|
||||||
|
WEIGHT,
|
||||||
|
} from '../../common/common';
|
||||||
|
import Icon from 'react-native-vector-icons/Ionicons';
|
||||||
|
import {Reminder} from '../../components/Reminder';
|
||||||
|
|
||||||
|
const w = Dimensions.get('window').width;
|
||||||
|
const h = Dimensions.get('window').height;
|
||||||
|
|
||||||
|
export const Reminders = ({navigation}) => {
|
||||||
|
const [colors, setColors] = useState(COLOR_SCHEME);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<SafeAreaView>
|
||||||
|
<View
|
||||||
|
style={{
|
||||||
|
flexDirection: 'row',
|
||||||
|
justifyContent: 'space-between',
|
||||||
|
alignItems: 'center',
|
||||||
|
paddingHorizontal: '5%',
|
||||||
|
marginTop: Platform.OS == 'ios' ? h * 0.02 : h * 0.04,
|
||||||
|
marginBottom: h * 0.04,
|
||||||
|
}}>
|
||||||
|
<Text
|
||||||
|
style={{
|
||||||
|
fontSize: SIZE.xxl,
|
||||||
|
color: colors.pri,
|
||||||
|
fontFamily: WEIGHT.bold,
|
||||||
|
}}>
|
||||||
|
Reminders
|
||||||
|
</Text>
|
||||||
|
<Icon name="md-more" color={colors.icon} size={SIZE.xxl} />
|
||||||
|
</View>
|
||||||
|
|
||||||
|
<Reminder invert={true} />
|
||||||
|
</SafeAreaView>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
Reminders.navigationOptions = {
|
||||||
|
header: null,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Reminders;
|
||||||
|
|||||||
Reference in New Issue
Block a user