react-native-gifted-form icon indicating copy to clipboard operation
react-native-gifted-form copied to clipboard

Close modal and update display field with custom button

Open BilalBudhani opened this issue 8 years ago • 1 comments

Right button in Navigator has a very low visibility so I was thinking of adding a custom button in Modal view to close the modal and select the value. So far I'm able to close the modal but not able to update the display value of the field. Any suggestion?

        <GiftedForm.ModalWidget
          title='Recorded At'
          displayValue='recorded_at'
          scrollEnabled={false}>

          <GiftedForm.SeparatorWidget/>
          <GiftedForm.DatePickerIOSWidget
            name='recorded_at'
            mode='datetime'
            timeZoneOffsetInMinutes={this._getTimezoneOffset()}
            getDefaultDate={() => new Date() }
          />
          <Button
            onPress={() => this.props.navigator.pop()}
            style={{
              backgroundColor: '#3F5C7A',
              margin: 10,
            }}
            textStyle={{color: '#fff'}}>
            Done
          </Button>
        </GiftedForm.ModalWidget>

BilalBudhani avatar Apr 29 '16 10:04 BilalBudhani

+1

dev-vinoth avatar May 26 '17 06:05 dev-vinoth