ardaogulcan/react-native-keyboard-accessory

doneDisabled and doneHidden Property are not available

Opened this issue · 0 comments

When I use KeyboardAccessoryNavigation to set donebutton, doneDisabled, and doneHidden Property are not available。
i use iphone 15 pro and React Native 0.73.
These are my codes:

  render() {
    return (
      <View style={styles.container}>
        <ScrollView contentContainerStyle={styles.contentContainer}>
          <View style={styles.switchInput}>
            <Switch
              value={this.state.buttonsHidden}
              onValueChange={() => {
                this.setState({
                  buttonsHidden: !this.state.buttonsHidden
                })
              }}
            />
            <Text style={styles.switchInputText}>
              Hide arrows
            </Text>
          </View>
          { inputs.map(({ placeholder, keyboardType, ref }, index) =>
            <TextInput
              key={`input_${index}`}
              ref={ref}
              style={styles.textInput}
              underlineColorAndroid="transparent"
              placeholder={placeholder}
              keyboardType={keyboardType}
              blurOnSubmit={false}
              onFocus={this.handleFocus(index)}
            />
          )}
        </ScrollView>
        <KeyboardAccessoryNavigation
          nextDisabled={this.state.nextFocusDisabled}
          previousDisabled={this.state.previousFocusDisabled}
          nextHidden={this.state.buttonsHidden}
          previousHidden={this.state.buttonsHidden}
          onNext={this.handleFocusNext}
          onPrevious={this.handleFocusPrevious}
          doneDisabled = {true}
          doneHidden ={false}
          avoidKeyboard
          androidAdjustResize
        />
      </View>
    );
  }
}