S
S
Shiki002020-07-01 02:53:59
React Native
Shiki00, 2020-07-01 02:53:59

Why is Alert.alert() not working?

https://snack.expo.io/@miralis/bad-apple
There is an if in pressNumber, I need the inscription "Correct!" to be alerted in case of true (note that I mean exactly Alert.alert (), not alert()).
However nothing alerts, any idea why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Alexandrovich, 2020-07-01
@Shiki00

what do you mean not alert? if you're testing on the web tab, you won't see anything.
5efc39b3aac02925520197.png
here is the documentation. If it doesn't work again read https://docs.expo.io/versions/latest/react-native/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question