I have already seen this one, but I don’t want extra packages on my hand
I have also tried to throw
exception but it was quite slow and created many other problems, all I want is a piece of code that just crashes the app
I have already seen this one, but I don’t want extra packages on my hand
I have also tried to throw
exception but it was quite slow and created many other problems, all I want is a piece of code that just crashes the app
4 Answers
Reset to default 8TypeScript
const test: any = {};
console.log(test.should.crash);
Will cause
TypeError: undefined is not an object (evaluating 'test.should.crash')
just add any string outside of a <Text/>
block
i.e.
<View>hello world</View>
Consider that you can't crash app on development. these answers cause crash on production releases only
You can crash the app by requesting Camera without adding the key NSCameraUsageDescription in Info.plist. It'll crash the app without warning.
while(1)
works every time – Jeremy Thille Commented Apr 9, 2019 at 13:25console.log(a);
Crash :a is undefined
. – Jeremy Thille Commented Apr 9, 2019 at 13:26