I am new to React Native, using with expo snacks online. I've made login and sign-up page with firebase, whenever I click the signup button this error " undefined is not an object (evaluating 'e.stack.replace') appear. Plus it don't push these values in database, I've linked my DB configuration code while removing the key and link because of privacy purpose. Everything seems to be fine and works but whenever I enter values and click sign up button undefined is not an object (evaluating 'e.stack.replace') error appears.
The result should be when I click on signup button it adds data in the firebaseenter image description here