Relative Content

Tag Archive for iosreact-nativeexpo

React Native with Expo and adding folders to iOS

In React Native with Expo, can you include a folder in the iOS build thru configuration without having to update the iOS project directly? The folder I want to add has various binary and text files in it. Also, I want to add the folder as a whole, not just individual files, such that if a new file is added to the folder it will automatically be pulled into the next iOS build. This should be equivalent to adding a folder reference in Xcode.

React Native App Expo on iOS stops working as soon as it is opened

My application is being developed in react native using expo version 6.3.10 and SDK 51.0.7. Within the application I use the libraries below. The problem is that after building for development profile on IOS, it opens and then closes immediately. Without any logs in my console. Has anyone gone through something similar and managed to fix?

*** Terminating app due to uncaught exception ‘RCTFatalException: Unhandled JS Exception

*** Terminating app due to uncaught exception ‘RCTFatalException: Unhandled JS Exception: TypeError: Cannot read property ‘prototype’ of undefined, js
engine: hermes’, reason: ‘Unhandled JS Exception: TypeError: Cannot read property ‘prototype’ of undefined, js engine: hermes, stack:
anonymous@161047:69
loadModuleImplementation@153:13
guardedLoadModule@92:37
metroRequire@38:91
anonymous@109769:33
loadModuleImplementation@153:13
guardedLoadModule@92:37
metroRequire@38:91
anonymous@211538:55
loadModuleImplementation@153:13
guardedLoadModule@92:37
metroRequire@38:91
anonymous@224323:26
loadModuleImplementation@153:13
guardedLoadModule@85:46
metroRequire@38:91
get@56205:26
metroContext@56210:14
loadRoute@74111:32
applyDefaultInitialRouteName@74001:31
fileNodeToRouteNode@74058:40
treeNodeToRouteNode@74091:32
treeNodesToRootRoute@74134:36
getExactRoutesInternal@74273:31
getRoutes@74171:38
initialize@71642:51
anonymous@71776:37
useMemo@26748:31
anonymous@12133:28
useInitializeExpoRouter@71775:24
ContextNavi<…>

Expo,React Native Error: Invariant Violation: “main” has not been registered, ReferenceError: Property ‘user’ doesn’t exist, js engine: hermes

I’m using on React Native and Expo go.
This error suddenly occurred while working as usual with React Native.
I don’t remember exactly what step it was, but it seems to have started to occur after I created a hook called useProductFetch for useState variables or functions declared inside a functional component.
To solve this problem, I created a new project folder, moved the files, and reinstalled the dependencies. But I’ve been getting this error repeatedly, and I’ve been looking for a way to fix this for about two days. And to solve the error “Invariant Violation: “main” has not been registered”, i checked my “name” in app.json and package.json. there were not any problems.
Here is my codes.