react-native-flexbox Questions
7
I have a list of Terms that are returned by a query. Each is a single word. Currently my FlatList renders each word into a button on the same row (horizontal={true})
I would like the buttons to wra...
Shashaban asked 5/8, 2017 at 21:8
6
I want to render 7 buttons in a row with equal width to fill up all the available space horizontally.
render() {
return (
<FlatList
data={this.state.days}
renderItem={({ item }) => <V...
Raconteur asked 22/3, 2018 at 17:44
5
Solved
Background
I have an image meant to be displayed while other content is loading.
I want it to be centered and look the same on all devices.
Problem
Currently, the image shows up at the top left.
...
Ers asked 15/8, 2017 at 1:13
2
Solved
How can i reproduce flex-direction: row-reverse in React-Native? When in element' style i'm doing:
flexDirection: 'row-reverse'
i'm getting error:
Invalid prop flexDirection of value row-rev...
Lag asked 15/7, 2016 at 22:54
7
Solved
I'm trying to create a horizontal FlatList that has some spacing around it. I was able to get the beginning spacing correct with paddingLeft on the list, but paddingRight on the list doesn't seem t...
Hydrograph asked 9/11, 2018 at 8:20
14
Solved
Suppose this is the layout:
<View style={styles.container}>
<View style={styles.titleWrapper}>
...
...
</View>
<View style={styles.inputWrapper}>
...
...
</View&...
Arneson asked 11/8, 2016 at 4:3
4
I am trying to render the list of items like in this image.
Items in each row will vary based on their text size. Flatlist is using for rendering items.
TagView.js
<View style={styles.tagVie...
Kezer asked 13/8, 2018 at 10:19
8
Solved
I am using react native web library but I can't make full height on web
Code:
import React from 'react';
import {StyleSheet, View, Text, TouchableOpacity} from 'react-native';
class index extend...
Hawsepipe asked 26/12, 2017 at 9:21
6
I have a ScrollView which content doesn't necessarily exceeds it's size. Let's say it's a form where, upon errors, it expands to add error messages and then it exceeds the ScrollView size and thus ...
Pepsinate asked 12/8, 2016 at 15:40
1
I am trying to implement a UI layout similar to google maps "explore" on Android, (see gif) in React Native.
In my UI design I have app navigation tabs at the bottom of the screen, with a full pag...
Cancroid asked 24/7, 2019 at 6:48
2
I'm trying to use percentage value for margin style attribute on my React Native project but it seems to reduce the height of one of my View component. If I replace percentage value by an absolute ...
Conceal asked 23/5, 2018 at 10:12
2
Solved
this is my component:
const styles = {
menuContainer: {
flex: 1,
flexDirection: 'column'
},
menuItem: {
flex: 1,
borderRadius: ??
}
}
<View style={styles.menuContainer}>
<Touch...
Longlongan asked 25/10, 2017 at 16:43
6
in html I can achieve this by
<span style="background-color:red">ketan</span>
but in react native how to implement this so that color will be applied to the text only.
Pedo asked 16/7, 2018 at 9:5
2
Solved
How to achieve the square layout like the image below?
Or any related package exist?
Jemie asked 5/11, 2017 at 14:3
2
Solved
Can I use the justifyContent: 'space-evenly' on any elements in React Native? On which ones? What should the syntax look like?
Thanks!
Lavonda asked 6/11, 2017 at 12:50
2
Solved
I have a simple View which has two children, another View and a ScrollView. The ScrollView should be 5x higher than the View on the same level, using flexbox.
<View style={{ flex: 1}}>
...
Salahi asked 22/11, 2017 at 18:53
1
Solved
I have the following code:
renderActionButtons(actionButtons){
let actionButtonsContent = actionButtons.map((button, i) => {
return <TouchableHighlight key={i} onPress={() => {this.upd...
Extended asked 9/9, 2017 at 16:19
2
Solved
So for the above image, I am attempting to get the "green" box to wrap around the dynamic text. Notice how the blue and yellow text boxes are in a flex: 'row' configuration, and the blue box of t...
Conure asked 24/7, 2017 at 21:32
2
Solved
Here is an example of what am trying to achieve and below is a breakdown of the component structure
and this is how currently the code is:
<View style={styles.buttonHolder}>
<Text styl...
Sac asked 27/5, 2017 at 4:59
2
Solved
I am trying to design this design react-native. This is what I have coded for this but this is not what I want. This works on one screen only, if I change screen size then things are not working.
...
Conspectus asked 14/4, 2017 at 16:53
1
© 2022 - 2024 — McMap. All rights reserved.