question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

black screen on Android

See original GitHub issue

using it with flatlist


 <Card 
                    containerStyle={{borderColor: 'transparent'}}>

                    <ListItem
                      badge={{ value: 3, badgeTextStyle: { color: 'red' }, badgeContainerStyle: { marginTop: 10, color:'orange' } }}
                      roundAvatar
                      title={`${item.name.first} ${item.name.last}`}
                      subtitle={item.email}
                      avatar={
                        <TouchableOpacity onPress ={ () => this._showModal()  }>
                        <Avatar
                        medium
                       // onPress ={ () => this._showModal()  }
                        rounded
                        source={{ uri: item.picture.thumbnail }} 
                      // style={{borderRadius:25, height:50, width:50 }}
                         />
                         </TouchableOpacity>
                             }
                    
                      containerStyle={{borderBottomWidth: 0, padding:0 }}
                    />
                    <Modal isVisible={this.state.isModalVisible}>
                      <View>
                        <Text>Hello!</Text>
                      </View>
                   </Modal>
                   
      </Card>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
PramodVemulapallicommented, Sep 25, 2017

I ran into a similar issue and thought this may help other folks who run into such an issue. The backdropOpacity parameter which is defaulted to 0.7 seems to create drastically different background transparencies for android and ios and the android background appears really dark. I ended up fixing it by using a platform specific parameter as shown below.

<View>
  <Modal
          animationIn={'slideInLeft'}
          animationOut={'slideOutRight'}
          style={styles.bottomModal}
          backdropOpacity={Platform.OS === 'android'? 0.5 : 0.7}
        >
          {this.renderModalContent()}
    </Modal>
</View>
2reactions
mmazzarolocommented, Dec 12, 2017

Thanks @PramodVemulapalli, but I guess it might be device-specific 🤔

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Black Screen on Android Phones - Lifewire
How to Fix a Black Screen on an Android Phone · Press & hold the Home, Power, & Volume Down/Up buttons. · Press...
Read more >
5 Proven Ways to Fix Android Black Screen of Death - iMobie
Way 5. Fix Android Black Screen by Removing the Phone's Battery · First, open the protective cover of the phone from the charging...
Read more >
How to Fix Black Screen on Android Phone (2022 Update)
Way 1. Force Restart Your Android · Press and hold down the Power, Home and Volume Up/Down keys. · Press and hold down...
Read more >
How do I fix my android black screen? - Player Assist
Factory reset to fix black screen issues ; Power off the device. Power off your device and make sure its completely turned off....
Read more >
How to Fix Black Screen on Android Phone[4 Easy Methods]
Part 3: Other Tricks to Fix Android Black Screen · 1. Power off your Android phone. · 2. Press and hold the Power...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found