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.

[Android] CircleSnail shows a black rectangle on react-native v0.57

See original GitHub issue

Hi After upgrading my react-native project to 0.57, on Android, CircleSnail component shows a black reactangle. It was working on v 0.56. My code:

    import * as Progress from 'react-native-progress';
    
    // in render()
    <Progress.CircleSnail size={80} color='#ffffff' indeterminate/>

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:10
  • Comments:21

github_iconTop GitHub Comments

15reactions
ifsnowcommented, Nov 20, 2018

I found out the workaround. In my case, It works well as intended on Android devices.

I hope this helps.

constructor(props: Props) {
  super(props);
  this.state = {
    isVisible: false,
  };
}

componentDidMount() {
  requestAnimationFrame(() => {
    this.setState({
      isVisible: true,
    });
  });
}

render() {
  if (!this.state.isVisible) {
    return null;
  }

  return (
    <View style={styles.container}>
      <Progress.Circle
        size={52}
        progress={0.5}
        unfilledColor="#fff"
        color="#ff457f"
        thickness={2}
        borderWidth={0}
      >
      </Progress.Circle>
    </View>
  );
}
3reactions
NguyenHoangMinh1996commented, Sep 20, 2018

i got the same issue when upgrade RN 0.57. in <Progress.Circle />. in ios work fine, but every android devices, just a black square.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Black screen on Android with React Native - Stack Overflow
The app works perfectly on iOS. My problem is that I get a completely black screen in React Native. I don't know what...
Read more >
The Complete React Native Course 2021 : from Zero to Hero
Learn to Build Native Android & iOS Applications with React Native Included: React Hooks, Redux, React Navigation, Firebase Push ...
Read more >
React Native Tutorial for Beginners - Build a React Native App
React Native Tutorial for Beginners - Learn to build an amazing React Native app for iOS & Android. Get the full...
Read more >
React Native v0.65.x released
Use React Native.
Read more >
Here are my favorite hacks for creating production level apps ...
Note: At the time of writing this article, React Native was at v0.57-rc4. Check if some of the things are already available/fixed in...
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