123456789101112131415161718192021222324252627282930313233 |
- import React from 'react';
- import { StyleSheet, Text, Pressable, View, TextInput, Button } from 'react-native';
-
-
- export default function TitleBarButton(props){
-
- return(
- <Pressable
- style={[styles.button, (props.currentDurationMode == props.durationMode ? styles.highlighted : null)]}
- onPress={() => {
- props.onChangeDuration(props.durationMode)
- props.onDurationEdit(null);
- }}>
- <Text>{props.durationMode}</Text>
- </Pressable>
- )
- }
-
-
- const styles = StyleSheet.create({
- button: {
- padding: 1,
- margin:1,
- borderWidth: 1,
- },
- input: {
- borderWidth: 0.5
- },
- highlighted: {
- backgroundColor: "#ECECEC",
- borderWidth: 1.5,
- }
- });
|