April 2017
Intermediate to advanced
414 pages
8h 14m
English
Remove DatePickerIOS and ExpandableCell from the import statements:
// Tasks/app/components/EditTask/index.android.js ... import { ... DatePickerAndroid, TimePickerAndroid, } from 'react-native'; ...
I removed the expanded Boolean from state in this component's constructor function:
export default class EditTask extends Component { ...
This new Button for DatePicker calls _showAndroidDatePicker when pressed. It is placed right below TextInput and replaces ExpandableCell:
render () { ... return ( <View style={ styles.editTaskContainer }> ... <View style={ styles.androidButtonContainer }> <Button color={ '#80B546' } title={ this.state.dateSelected ? dueDateSetTitle : noDueDateTitle ...Read now
Unlock full access