is Snack/Expo down?

was working fine yesterday.



Hi

I’m not sure the above is an indication of something wrong with snack, (although there is currently a problem with images not showing on mobile).

If I create a new snack and load it on my phone it works fine except for the image problem mentioned above.
I have seen the expo app crash for seemingly simple things like specifying padding: '8px' instead of padding: 8, so your crash might be something like that.

Did you make any changes at all between when it was working and when it wasn’t?
If you create a new snack, does it crash?
If you export your snack and try using expo start locally does it work/crash?

hey, yeah figured it out.

the commented code for lottie library caused the problem. Now, I’ll have to figure out another way of running it.

Using React native for the first time, figuring it out as I make it.
Thanks.

1 Like

I have had problems trying to comment stuff out too in the past :laughing:

I think what you’re looking for is something like this if you’re trying to comment out some JSX:

{ /* commented code */ }

If it’s not within JSX then a normal // or /* ... */ will do.

e.g.

export default class HomeScreen extends React.Component {
  render() {
    // normal JS comment should work here
    return (
      <View>
        { /* <LottieView ... /> */ }
      </View>
    );
  }
}

But I think having that within the return (), but not actually within the JSX like in your comment might be problematic.

1 Like

thanks