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

Cards not showing #35

Open
cwagner22 opened this issue Jun 1, 2017 · 4 comments
Open

Cards not showing #35

cwagner22 opened this issue Jun 1, 2017 · 4 comments

Comments

@cwagner22
Copy link

I'm still new to react native but shouldn't TouchableOpacity have the style flex: 1?
https://github.com/moschan/react-native-flip-card/blob/master/lib/FlipCard.js#L164

My cards are not showing right now (Unless I set clickable={false}) or I apply alignItems: 'center' to the container, like in the example)

@arronhunt
Copy link

Same issue, but I can't get them to show up with any attributes :(

@ericcastro92
Copy link

ericcastro92 commented Jun 25, 2017

@cwagner22 I believe you are correct. Adding flex: 1 gets the cards showing again, seems like an overlooked bug.

@bellson0d
Copy link

bellson0d commented Aug 1, 2017

@arronhunt Same issue, you can add flexDirection attribute into parent tag. Like this
<View style={{**flex:1, flexDirection: 'row'**}}> <FlipCard style={{**flex:1**}}> {/* Face Side */} <View style={styles.face}> <Text>The Face</Text> </View> {/* Back Side */} <View style={styles.back}> <Text>The Back</Text> </View> </FlipCard> </View>

@xavierartot
Copy link

xavierartot commented Sep 15, 2018

Same here doesn't work?

        <View style={{ flex: 1, flexDirection: 'row' }}>
          <FlipCard style={{ flex: 1 }}>
            <View style={styles.face}>
              <Text>The Face</Text>
            </View>
            <View style={styles.back}>
              <Text>The Back</Text>
            </View>
          </FlipCard>
        </View>

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

5 participants