You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
946 B

import React, { Component } from 'react'
import {
Dimensions,
Button,
View,
StyleSheet,
ScrollView,
Text,
TouchableOpacity,
} from 'react-native'
export default class extends Component {
render() {
return (
<React.Fragment>
<Button
title="Add 1 min"
onPress={() =>
this.props.onChange(
new Date(this.props.value.getTime() + 60 * 1000)
)
}
/>
<Text />
<Button
title="Add 1 hour"
onPress={() =>
this.props.onChange(
new Date(this.props.value.getTime() + 60 * 60 * 1000)
)
}
/>
<Text />
<Button
title="Add 24 hours"
onPress={() =>
this.props.onChange(
new Date(this.props.value.getTime() + 60 * 60 * 24 * 1000)
)
}
/>
</React.Fragment>
)
}
}