Closed taeyongkim95 closed 3 years ago
const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#3eb489', justifyContent:'center', alignItems:'center' }, inputAndButton: { zIndex:7000, flexDirection: 'row', position:'absolute' }, inputContainer: { borderWidth: 0, alignSelf: 'center' }, input: { borderRadius:8, padding:10, backgroundColor: 'white', borderWidth:0, flex:5, fontFamily: 'OpenSans_400Regular', zIndex:6000 }, itemText: { zIndex:7000, position:'absolute' }, button: { flex:1, padding:10, borderRadius:8, backgroundColor:'#1B4E3B', marginLeft:10 } });
This is my stylesheet. note: I don't know why I can't get the github comment to format itself to make it more readable. I apologize in advance
@taeyongkim95 did you find a work-around? i have the same problem.
@taeyongkim95 did you find a work-around? i have the same problem.
Nope. I think I ended up using FlatList right below a regular Input element
I have the same problem, so I added the flatListProps
flatListProps={{ keyExtractor: (_, index) =>
key${index}, renderItem: ({ item }) => ( <Text onPress={() => selectName(item)}>{item}</Text> ), }}
Unable to remove renderItem, does not work and is required I left the code below, useless at the time
if remove Erro: Property 'renderItem' is missing in type index.d.ts(83, 5): 'renderItem' is declared here.
`renderItem={({ item }) => ( <TouchableOpacity onPress={() => selectName(item)}>
</TouchableOpacity>
)}`
waiting for bug fix
I have a TouchableOpacity rendering inside the renderItem. However I cannot get it to register a click or touch no matter what I do with different zIndex styling or absolute positioning on all the different style Props that are listed on the github home. Any ideas? Here is my code:
` return (