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

hiddenOpacity Property are not available #101

Open
Qinlian1 opened this issue Oct 30, 2024 · 0 comments
Open

hiddenOpacity Property are not available #101

Qinlian1 opened this issue Oct 30, 2024 · 0 comments

Comments

@Qinlian1
Copy link

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

render() {
    const { text } = this.state;
    return (
      <View style={styles.container}>
        <ScrollView>
            <TextInput
                placeholder="Write your message"
                underlineColorAndroid="transparent"
                style={styles.input}/>
        </ScrollView>
        <KeyboardAccessoryView
          style={{ backgroundColor: 'green' }}
          alwaysVisible={false}
          animateOn={'all'} 
          hiddenOpacity={0.1}
          animationConfig={{
            duration: 500,
            create: {
              duration: 1000,
              type: LayoutAnimation.Types.linear,
              property: LayoutAnimation.Properties.opacity
            },
            update: {
              duration: 500,
              type: LayoutAnimation.Types.linear,
            },
            hide: {
              duration: 5000,
              type: LayoutAnimation.Types.linear,
              property: LayoutAnimation.Properties.opacity
            },
         }}
         >
            <View style={styles.textInputView}>
              <TextInput
                placeholder="Write your message"
                underlineColorAndroid="transparent"
                style={styles.textInput}
                multiline={true}
                value={text}
                onChangeText={text => this.setState({ text })}
              />
              <Button
                style={styles.textInputButton}
                title="Send"
                onPress={() => {}}
              />
            </View>
        </KeyboardAccessoryView>
      </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