Fork me on GitHub
#cljsrn
<
2017-09-02
>
tiensonqin05:09:15

Hi, anyone know how to register native modules when integrating with old native apps? I have a simple view which used https://github.com/voximplant/react-native-voximplant (which have some native modules), I tried linking manually, it compiled successfully but failed at the run time, couldn’t find the native module. https://facebook.github.io/react-native/docs/integration-with-existing-apps.html

tiensonqin07:09:00

solved my problem, 🙂

oskarth10:09:32

What tricks do people use to get around 0x8badf00d (resource limit hit, too slow to launch) when attempting to run on iOS device?

mfikes14:09:46

@oskarth I’ve never hit that, but I found that :advanced reduced my startup latency from 3 s to 2 s on an older device. You must be encountering multi-second startup timeouts? If :advanced doesn’t fix it I wonder if it is possible to show a splash screen and then initialize React Native after the app has launched. I suspect that there is something else severely blocking startup, though that you will want to actually fix.

oskarth15:09:20

@mfikes thanks, this is specifically for development, and iOS seems to hit watchdog limit after 30s and shut down while it is in the process of requiring modules/assets

oskarth15:09:43

Initializing RN after app has launched is a good idea

mfikes16:09:04

@oskarth Oh, I thought the watchdog was turned of when connected to an app launching via Xcode. (It has been a few years, though, since I've encountered the watchdog.)

oskarth16:09:24

@mfikes normally in debug mode, yes. However, we have a pesky EXC_BAD_ACCESS bug that makes the debugger unable to run (we are running an Ethereum Go node on the device)

oskarth09:09:38

Fixed this! Can now run in debug mode