Eventually i couldn't figure the problem out. I craeted an empty project with expo router and then coded all of the things again. This time it worked! I don't know what was the problem. But this time when i got the apk on my device there was a problem because of google maps api key, even if i provided in app config it couldn't see the api key, so i manually added the api key of mine to manifest.xml then the program didn't give any errors or crashes