All Questions
2 questions
1
vote
1
answer
1k
views
Get the selected value of Native Base Select component in test
I'm trying to test my Select component from Native Base and in the test I select an item from the list or directly trigger the onValueChange prop with a value and then assert the selected value, but I ...
1
vote
1
answer
3k
views
How to properly test if a Toast has been shown in react native using native base?
I am trying to write a test that checks if the screen is showing a Toast with an error message. The test passes, but there is a warning:
console.error
Warning: You called act(async () => ...) ...