Skip to content
Advertisement

fetching and passing params in react navigation

On Press of a button I need to pass params to another screen where value of that button is fetched, code below;

screen:1

JavaScript

screen:2

JavaScript

But during the fetching I get the following error

JavaScript

I have tried using timeout but that is not working, is there a better option.

Advertisement

Answer

The issue is that fetch is a native function in javascript (see here).

You should rename the param to another name like quizz.

screen:1

JavaScript

screen:2

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement