Skip to content

Flex row wrap over ScrollView broken on RN-0.29-rc.2 #8561

Description

@avishayil

On RN-0.28 The following code works great, I can scroll until the bottom.
On RN-0.29 I cannot scroll, only bounce:

import React, {Component} from 'react';
import {AppRegistry, View, ScrollView, Text, Dimensions} from 'react-native';

var {width} = Dimensions.get('window');

export default class Test extends Component {
    render() {
        return (
            <ScrollView>
                <View style={styles.container}>
                    {['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16'].map((value) => {
                        return (
                                <View style={styles.item} key={value}>
                                    <Text>{value}</Text>
                                </View>
                        );
                    })}
                </View>
            </ScrollView>
        );
    }
}

const styles = {
    container: {
        flex: 1,
        flexDirection: 'row',
        flexWrap: 'wrap'
    },
    item: {
        width: width / 2,
        height: 200,
        backgroundColor: 'green',
        justifyContent: 'center',
        alignItems: 'center'
    },
    text: {
        color: '#ffffff'
    }
};

AppRegistry.registerComponent('Test', () => Test);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions