Comments (5)
Hi @mariovillamizar thanks for the kind words :) I will check this ASAP (probably this weekend). Can you please give an example of a background you are using? Is it ImageBackground or some kind of blur library?
from react-native-keyboard-accessory-view.
Hey @demchenkoalex take a look of the screenshots:
This is my code:
<KeyboardAccessoryView
contentContainerStyle={{overflow: 'hidden'}}
renderScrollable={renderScrollable}
renderBackground={renderBackground}
useListenersOnAndroid
spaceBetweenKeyboardAndAccessoryView={Platform.OS == 'android' ? 20 : 0}
contentOffsetKeyboardOpened={Platform.OS == 'android' ? 20 : 40}
>
const renderScrollable = (panHandlers: GestureResponderHandlers) => (
<ScrollView ref={scrollView} keyboardDismissMode='interactive' {...panHandlers}>
<View style={styles.recommendContainer}>
<TextField
value={screen.state.comment}
containerStyle={styles.textFieldContainer}
inputStyle={styles.textFieldInput}
onChangeText={(text: string) => screen.setComment(text)}
autoCapitalize={'sentences'}
autoCorrect
multiline
maxLength={inputCharactersLimit}
errorMessage={`${screen.state.comment?.length ?? 0}/${inputCharactersLimit}`}
errorStyle={styles.textFieldCounter}
scrollEnabled={false}
onContentSizeChange={() => scrollView.current?.scrollToEnd()}
//autoFocus
/>
</View>
</ScrollView>
)
const renderBackground = () => (
<View style={{backgroundColor: 'red', height: 400, width: 400}}></View>
)
The background view is the red box (just for test purposes). Let me know if you need some extra info.
from react-native-keyboard-accessory-view.
I should probably emphasise this, but in the docs
(e.g. <ImageBackground style={StyleSheet.absoluteFill} /> ). Remember about absolute positioning.
background should be absolute positioned otherwise it will depend on a view you have in accessory, can you please try
<View style={StyleSheet.flatten([StyleSheet.absoluteFill, {backgroundColor: 'red', height: 400, width: 400}])}></View>
from react-native-keyboard-accessory-view.
Hi @mariovillamizar were you able to fix this using absolute positioning?
from react-native-keyboard-accessory-view.
Closing due no response, feel free to reopen if the issue is still there
from react-native-keyboard-accessory-view.
Related Issues (14)
- Keybard not showing on iPhone 8 HOT 2
- Renders on top of SafeAreaView HOT 2
- TextInput keyboard dismiss when setSate on iOS HOT 7
- Why not use the Animated API? HOT 8
- Scrollable cannot be set to fill entire height of container HOT 4
- FlatList keeps scrolling while being dismissed HOT 15
- When I input return, textinput is not follow my cursor HOT 7
- scroll over the keyboard with textinput HOT 2
- iOS negative keyboard height HOT 2
- got animate terrible in my project HOT 1
- Tab Bar issue HOT 5
- Usage with KeyboardAvoidingView and ScrollView? HOT 5
- Doesn't work on android HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-keyboard-accessory-view.