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

Running Example on Android 6.0 not working properly #5

Open
nav-y opened this issue Jul 28, 2016 · 4 comments
Open

Running Example on Android 6.0 not working properly #5

nav-y opened this issue Jul 28, 2016 · 4 comments

Comments

@nav-y
Copy link

nav-y commented Jul 28, 2016

Hello @yelled3 ,

First of all, thanks for the great example.

As a newbie to React Native, I've been trying to create a grid view by following your example, but it seems that if I simply c/p your example and try to run on Android, only the first row gets displayed. I can still scroll down (as if there are some contents), but the only row shown on the screen is the first row. Have you faced similar problem?

Thanks.

Regards, @nav-y

@wenxingxing2011
Copy link

yes same problem to me

@tmocellin
Copy link

Wich react-native version are you using ? I made a grid base on this exemple in rn-28 but when i update to rn-30 I got the same problem like you . To solve this I just move the style.row from the view to the TouchableHighlight in _renderRow function like this

<TouchableHighlight style={styles.row} onPress={() => this._pressRow(rowID)} underlayColor='rgba(0,0,0,0)'> <View> <View > <Image style={styles.thumb} source={imgSource} /> <Text style={styles.text}> {rowData} </Text> </View> </View> </TouchableHighlight>

@wenxingxing2011
Copy link

tky Tybi , it works.

@yelled3
Copy link
Owner

yelled3 commented Sep 15, 2016

@nav-y as you can see this a fairly old example :-)
https://github.com/yelled3/react-native-grid-example/blob/master/GridLayoutExample/package.json#L9

you're welcome to submit a PR for the updated example

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

4 participants