Cannot read property 'substring' of undefined

Cannot read property ‘substring’ of undefined

i go this error while trying to run a mobile app i was coding please how do i get rid of this error in my workspace
the link is https://alc-dev-toolkit-d50fe.firebaseapp.com/Rc0d9u5IKerVuhIzIjl3/!#playgroundupload