# App Crashes when try to open screen

**URL:** <https://community.thunkable.com/t/app-crashes-when-try-to-open-screen/33666>\
**Category:** Questions about Thunkable X\
**Tags:** slider, javascript\
**Created:** [June 30, 2018, 12:18am UTC](https://community.thunkable.com/t/app-crashes-when-try-to-open-screen/33666 "2018-06-30T00:18:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clayton\_Brown](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@Clayton\_Brown](https://community.thunkable.com/u/Clayton_Brown)\
**Post date:** [June 30, 2018, 12:18am UTC](https://community.thunkable.com/t/app-crashes-when-try-to-open-screen/33666/1 "2018-06-30T00:18:33Z")

</div>

I really hope the pictures uploaded successfully or this will make much less sense!

Trying to do a simple app, part of working it out, I started off with a page for my self where I can tweak variables, the idea being to see how these change the outputs. However, when I launch my app on my phone and navigate to this screen it crashes every time before the page even opens.

 ![setup%20screen](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/8/082dd672c4ba3e7d1b6c72e592225220b2f488db.PNG)  
 ![setup%20code](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/1/91a1c2661589301db81c3b505787b33f0bce56d8.PNG)  
 ![setup%20code%20v2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/a/1aa06ca626fe6adb71adcdec88d3d79dc0cf9f4e.PNG)

The screen is just a couple sliders and 1 button. When the button is pushed it takes all these values and saves them to the local storage under certain keys (which I assume is like a variable). As you can see, I’ve tried rearranging the code in two different ways and both cause it to crash every time.

Any suggestions much appreciated 😀

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 30, 2018, 6:38am UTC](https://community.thunkable.com/t/app-crashes-when-try-to-open-screen/33666/2 "2018-06-30T06:38:23Z")

</div>

Hi,

If you give me a link to your project, then the problem will show up. Is the application crashing on iOS or Android?

In your project, a large number of identical blocks are used. They can be significantly reduced with the use of functions. The smaller the blocks, the easier it is to work with them and find errors.

---

<div class="post-metadata">

**Author:** ![Clayton\_Brown](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@Clayton\_Brown](https://community.thunkable.com/u/Clayton_Brown)\
**Post date:** [June 30, 2018, 11:45am UTC](https://community.thunkable.com/t/app-crashes-when-try-to-open-screen/33666/3 "2018-06-30T11:45:52Z")

</div>

Crashing on Android, below is a link. I’ll certainly have to look into functions and stuff to make things more efficient, but I think phone should be able to handle this - right? Appreciate any help!

[https://x.thunkable.com/copy/4faf5fa7e774316cdc942c151ccc613d](https://x.thunkable.com/copy/4faf5fa7e774316cdc942c151ccc613d)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 30, 2018, 1:39pm UTC](https://community.thunkable.com/t/app-crashes-when-try-to-open-screen/33666/4 "2018-06-30T13:39:56Z")

</div>

Error message: “Error while updating property ‘justifyContent’ in shadow node of type: RCTView”

The crash is caused on Screen.Setup by setting the Column.justifyContent = space-evenly value. Use space-around.

---

<div class="post-metadata">

**Author:** ![Clayton\_Brown](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@Clayton\_Brown](https://community.thunkable.com/u/Clayton_Brown)\
**Post date:** [July 2, 2018, 5:22pm UTC](https://community.thunkable.com/t/app-crashes-when-try-to-open-screen/33666/5 "2018-07-02T17:22:34Z")

</div>

Thanks so much for looking into this!

Just curious, do you know why space-evenly doesn’t work?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 2, 2018, 5:27pm UTC](https://community.thunkable.com/t/app-crashes-when-try-to-open-screen/33666/6 "2018-07-02T17:27:14Z")

</div>

Unfortunately, I can not say the reason, but I think that the developers will correct this point.

---

<div class="post-metadata">

**Author:** ![Clayton\_Brown](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@Clayton\_Brown](https://community.thunkable.com/u/Clayton_Brown)\
**Post date:** [July 2, 2018, 7:34pm UTC](https://community.thunkable.com/t/app-crashes-when-try-to-open-screen/33666/7 "2018-07-02T19:34:30Z")

</div>

ok - well, thanks again

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:02pm UTC](https://community.thunkable.com/t/app-crashes-when-try-to-open-screen/33666/8 "2024-11-08T12:02:16Z")

</div>


