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

Text going out of section frame #26

Closed
tnguyen42 opened this issue Aug 8, 2015 · 3 comments
Closed

Text going out of section frame #26

tnguyen42 opened this issue Aug 8, 2015 · 3 comments

Comments

@tnguyen42
Copy link

Hi,

I didn't see anybody reporting this issue so here it is: I tried the basic usage example that works perfectly fine... Except if the inside text is too long to hold in a section.
Here's what it gives:
image

When the code is simply:

render() {
     return (
        <View style={styles.container2}>
            <ScrollableTabView>
                <Homepage tabLabel="React" />
                <Profile tabLabel="Flow" />
                <Settings tabLabel="Jest" />
            </ScrollableTabView>
        </View>
    );
}

With the Homepage component being defined as follows:

class Homepage extends Component {
    render() {
        return (
            <View style={styles.container}>
                <Text style={styles.welcome}>
                    Welcome! This is the Homepage. And some more ligns just to check everything's fine.
                </Text>
            </View>
        );
    }
}

It used to automatically wrap in the Navigator. For info here's styles.container:

container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
},
@tnguyen42
Copy link
Author

Update: apparently it's the alignItems center the messes everything up. Didn't figure out why yet.

@brentvatne
Copy link
Collaborator

@tnguyen42 - any updates?

@tnguyen42
Copy link
Author

Nope sorry, I tried another way so I'm not having this issue anymore.
You can close it if you want, I believe it's kind of uncommon.

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

2 participants