Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doneDisabled and doneHidden Property are not available #99

Open
yaoZZYff opened this issue Aug 12, 2024 · 0 comments
Open

doneDisabled and doneHidden Property are not available #99

yaoZZYff opened this issue Aug 12, 2024 · 0 comments

Comments

@yaoZZYff
Copy link

yaoZZYff commented Aug 12, 2024

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>
    );
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant