Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using waku with expo (react-native) #710

Closed
NightlySide opened this issue Apr 18, 2022 · 7 comments
Closed

Using waku with expo (react-native) #710

NightlySide opened this issue Apr 18, 2022 · 7 comments

Comments

@NightlySide
Copy link

Problem

As discussed in the discord server here. I am trying to setup js-waku with expo.

As I understand, according to #628 and #337, it shouldn't be working (and of course it doesn't work). However I am getting different errors from the two issues mentioned before.

Steps to reproduce

After installing yarn, nodejs and the expo-cli, init a project using typescript:

expo init myapp

After adding waku and setting up a bit of code to create a node and connect to the boostrap node:

yarn android

I get this issue:

Unable to resolve module crypto from node_modules/js-waku/... could not be found within the project or in these directories:
  node_modules/js-waku/node_modules
  node_modules

If you are sure the module exists, try these steps:
 1. Clear watchman watches: watchman watch-del-all
 2. Delete node_modules and run yarn install
 3. Reset Metro's cache: yarn start --reset-cache
 4. Remove the cache: rm -rf /tmp/metro-*

I stumbled upon an article saying in order to make gun.js work on react native you need to provide polyfills for the crypto library. After installing the required library, the assert module was missing. Okay so I may have to polyfill everything.

That is when I found rn-nodeify which modifies recursively dependencies to support shims.js.

I follow the installation:

yarn add -D rn-nodeify
yarn run rn-nodeify --hack --install

And then the missing module message isn't there anymore. However I am facing a new issue:

Screenshot_20220418_213913

After a quick google search this is what i found to be the issue on Stack overflow:

Your code is not valid because `12_200_000` is not a valid number and not defined anywhere. So it needs to be a string and declared with `'12_200_000'` or `1220000` as the real number.

I really want to use this library for my next project so I'll be glad to give you as many information as required to make this works! Thank you

@D4nte
Copy link
Contributor

D4nte commented Apr 19, 2022

Is there any way to extract a stack so we can track down the faulty number?

@NightlySide
Copy link
Author

I tried to get the error stack.. however expo keeps telling me "no stack" whatsoever

@NightlySide
Copy link
Author

NightlySide commented Apr 20, 2022

Well nevermind I found a way to get the error stack:

The error stack (a bit verbose sorry)
04-20 07:18:38.802   517  1400 I ActivityTaskManager: START u0 {flg=0xc080000 cmp=host.exp.exponent/.experience.ExperienceActivity (has extras)} from uid 10121
04-20 07:18:38.801   517  1400 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
04-20 07:18:38.803   517   537 D EventSequenceValidator: inc AccIntentStartedEvents to 2
04-20 07:18:38.807   421   421 I perfetto: ing_service_impl.cc:758 Configured tracing session 33, #sources:1, duration:5000 ms, #buffers:1, total buffer size:4096 KB, total sessions:3, uid:1071 session name: ""
04-20 07:18:38.808   409   409 I perfetto: probes_producer.cc:230  Ftrace setup (target_buf=33)
04-20 07:18:38.819   517   537 D EventSequenceValidator: dec AccIntentStartedEvents to 1
04-20 07:18:38.847   309   309 D goldfish-address-space: claimShared: Ask to claim region [0x3ec000000 0x3ec9a4000]
04-20 07:18:38.892   517  1400 W ActivityTaskManager: Tried to set launchTime (0) < mLastActivityLaunchTime (1246911)
04-20 07:18:38.932  2197  2197 W a       : Could not find listener for key: experienceActivityKernelDidLoad
04-20 07:18:38.933  2197  2197 W a       : Could not find listener for key: openOptimisticExperienceActivity
04-20 07:18:38.933  2197  2197 W a       : Could not find listener for key: openExperienceActivity
04-20 07:18:38.939   517  1400 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
04-20 07:18:38.967   309   309 D goldfish-address-space: claimShared: Ask to claim region [0x3f3034000 0x3f39d8000]
04-20 07:18:39.092   309   309 D goldfish-address-space: claimShared: Ask to claim region [0x3f0000000 0x3f09a4000]
04-20 07:18:39.099   309   309 D goldfish-address-space: claimShared: Ask to claim region [0x3f09a4000 0x3f1348000]
04-20 07:18:39.104   309   309 D goldfish-address-space: claimShared: Ask to claim region [0x3f1348000 0x3f1cec000]
04-20 07:18:39.143   517   543 I ActivityTaskManager: Displayed host.exp.exponent/.experience.ExperienceActivity: +340ms
04-20 07:18:39.149  2197  2197 E c       : java.lang.RuntimeException: A TaskDescription's primary color should be opaque
04-20 07:18:39.151  2197  2197 D SoLoader: init exiting
04-20 07:18:39.152   517  1400 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
04-20 07:18:39.157  2197  2197 W a       : Could not find listener for key: loadBundleForExperienceActivity
04-20 07:18:39.158  2197  2197 E k       : java.lang.NoSuchFieldException: No field numActivities in class Landroid/app/ActivityManager$RecentTaskInfo; (declaration of 'android.app.ActivityManager$RecentTaskInfo' appears in /system/framework/framework.jar)
04-20 07:18:39.159  2197  2197 W unknown:ReactRootView: Unable to update root layout specs for uninitialized ReactInstanceManager
04-20 07:18:39.159  2197  2197 W unknown:ReactRootView: Unable to update root layout specs for uninitialized ReactInstanceManager
04-20 07:18:39.160  2197  2862 D k       : Successfully called ExponentKernel.addHistoryItem in kernel JS.
04-20 07:18:39.182   309   309 D goldfish-address-space: claimShared: Ask to claim region [0x3ef9d8000 0x3efa42000]
04-20 07:18:39.191   309   309 D goldfish-address-space: claimShared: Ask to claim region [0x3efa42000 0x3efaac000]
04-20 07:18:39.194   309   309 D goldfish-address-space: claimShared: Ask to claim region [0x3efaac000 0x3efb16000]
04-20 07:18:39.198  2197  2197 D SoLoader: init exiting
04-20 07:18:39.202  2197  2197 W unknown:ReactNative: Packager connection already open, nooping.
04-20 07:18:39.267   309   309 D goldfish-address-space: claimShared: Ask to claim region [0x3efa42000 0x3efaac000]
04-20 07:18:39.272   309   309 D goldfish-address-space: claimShared: Ask to claim region [0x3efaac000 0x3efb16000]
04-20 07:18:39.355   517   517 W NotificationHistory: Attempted to add notif for locked/gone/disabled user 0
04-20 07:18:39.378   309   309 D goldfish-address-space: claimShared: Ask to claim region [0x3ef9d8000 0x3efa42000]
04-20 07:18:39.397   681   681 D InterruptionStateProvider: No bubble up: not allowed to bubble: 0|host.exp.exponent|10101|null|10121
04-20 07:18:39.398   681   681 D InterruptionStateProvider: No heads up: unimportant notification: 0|host.exp.exponent|10101|null|10121
04-20 07:18:39.429   409   409 I perfetto: probes_producer.cc:329  Producer stop (id=31)
04-20 07:18:39.430   421   421 I perfetto: ng_service_impl.cc:1948 Tracing session 31 ended, total sessions:2
04-20 07:18:39.604   517  2855 D HostConnection: HostConnection::get() New Host Connection established 0xf2534180, tid 2855
04-20 07:18:39.611   517  2855 D HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0 
04-20 07:18:39.612   517  2855 W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
04-20 07:18:39.613   517  2855 D EGL_emulation: eglCreateContext: 0xf2535d80: maj 3 min 0 rcv 3
04-20 07:18:39.614   517  2855 D EGL_emulation: eglMakeCurrent: 0xf2535d80: ver 3 0 (tinfo 0xb038d510) (first time)
04-20 07:18:39.634  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.picker.ReactDialogPickerManager
04-20 07:18:39.635  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.uimanager.LayoutShadowNode
04-20 07:18:39.635  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.drawer.ReactDrawerLayoutManager
04-20 07:18:39.636  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.picker.ReactDropdownPickerManager
04-20 07:18:39.636  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.scroll.ReactHorizontalScrollViewManager
04-20 07:18:39.637  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.scroll.ReactHorizontalScrollContainerViewManager
04-20 07:18:39.637  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.progressbar.ReactProgressBarViewManager
04-20 07:18:39.637  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.progressbar.ProgressBarShadowNode
04-20 07:18:39.637  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.scroll.ReactScrollViewManager
04-20 07:18:39.639  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.slider.ReactSliderManager
04-20 07:18:39.640  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.slider.ReactSliderManager$ReactSliderShadowNode
04-20 07:18:39.640  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.switchview.ReactSwitchManager
04-20 07:18:39.641  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
04-20 07:18:39.641  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
04-20 07:18:39.643  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager
04-20 07:18:39.643  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode
04-20 07:18:39.644  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.image.ReactImageManager
04-20 07:18:39.644  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.modal.ReactModalHostManager
04-20 07:18:39.644  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.modal.ModalHostShadowNode
04-20 07:18:39.644  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.text.ReactRawTextManager
04-20 07:18:39.645  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.text.ReactRawTextShadowNode
04-20 07:18:39.645  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.textinput.ReactTextInputManager
04-20 07:18:39.646  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.textinput.ReactTextInputShadowNode
04-20 07:18:39.647  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.text.ReactTextViewManager
04-20 07:18:39.648  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.text.ReactTextShadowNode
04-20 07:18:39.648  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.view.ReactViewManager
04-20 07:18:39.648  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.text.ReactVirtualTextViewManager
04-20 07:18:39.649  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.text.ReactVirtualTextShadowNode
04-20 07:18:39.649  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.com.facebook.react.views.unimplementedview.ReactUnimplementedViewManager
04-20 07:18:39.649  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$GroupViewManager
04-20 07:18:39.650  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$RenderableShadowNode
04-20 07:18:39.651  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$PathViewManager
04-20 07:18:39.651  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$CircleViewManager
04-20 07:18:39.652  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$EllipseViewManager
04-20 07:18:39.652  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$LineViewManager
04-20 07:18:39.652  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$RectViewManager
04-20 07:18:39.653  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$TextViewManager
04-20 07:18:39.653  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$TSpanViewManager
04-20 07:18:39.654  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$TextPathViewManager
04-20 07:18:39.654  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$ImageViewManager
04-20 07:18:39.654  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$ClipPathViewManager
04-20 07:18:39.655  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$DefsViewManager
04-20 07:18:39.655  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$UseViewManager
04-20 07:18:39.655  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$SymbolManager
04-20 07:18:39.656  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$LinearGradientManager
04-20 07:18:39.656  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$RadialGradientManager
04-20 07:18:39.657  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$PatternManager
04-20 07:18:39.657  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$MaskManager
04-20 07:18:39.658  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$ForeignObjectManager
04-20 07:18:39.658  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.RenderableViewManager$MarkerManager
04-20 07:18:39.658  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.svg.SvgViewManager
04-20 07:18:39.659  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.maps.AirMapCalloutManager
04-20 07:18:39.659  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.maps.AirMapMarkerManager
04-20 07:18:39.660  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.maps.AirMapPolylineManager
04-20 07:18:39.660  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.maps.AirMapGradientPolylineManager
04-20 07:18:39.661  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.maps.AirMapPolygonManager
04-20 07:18:39.661  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.maps.AirMapCircleManager
04-20 07:18:39.661  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.maps.AirMapManager
04-20 07:18:39.663  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.maps.AirMapLiteManager
04-20 07:18:39.663  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.maps.AirMapUrlTileManager
04-20 07:18:39.663  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.maps.AirMapWMSTileManager
04-20 07:18:39.663  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.maps.AirMapLocalTileManager
04-20 07:18:39.664  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.maps.AirMapOverlayManager
04-20 07:18:39.664  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.maps.AirMapHeatmapManager
04-20 07:18:39.665  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.lottie.LottieAnimationViewManager
04-20 07:18:39.665  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.gesturehandler.react.RNGestureHandlerRootViewManager
04-20 07:18:39.665  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.gesturehandler.react.RNGestureHandlerButtonViewManager
04-20 07:18:39.666  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.screens.ScreenContainerViewManager
04-20 07:18:39.666  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.screens.ScreenViewManager
04-20 07:18:39.666  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.screens.ScreenStackViewManager
04-20 07:18:39.666  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.screens.ScreenStackHeaderConfigViewManager
04-20 07:18:39.667  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.screens.ScreenStackHeaderSubviewManager
04-20 07:18:39.667  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.screens.SearchBarManager
04-20 07:18:39.668  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.webview.RNCWebViewManager
04-20 07:18:39.669  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.safeareacontext.SafeAreaProviderManager
04-20 07:18:39.669  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.safeareacontext.SafeAreaViewManager
04-20 07:18:39.669  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.safeareacontext.SafeAreaViewShadowNode
04-20 07:18:39.670  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.sharedelement.RNSharedElementTransitionManager
04-20 07:18:39.670  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.maskedview.RNCMaskedViewManager
04-20 07:18:39.670  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.picker.ReactDialogPickerManager
04-20 07:18:39.671  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.picker.ReactPickerShadowNode
04-20 07:18:39.671  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.picker.ReactDropdownPickerManager
04-20 07:18:39.671  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.slider.ReactSliderManager
04-20 07:18:39.672  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.slider.ReactSliderManager$ReactSliderShadowNode
04-20 07:18:39.672  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.pagerview.PagerViewViewManager
04-20 07:18:39.673  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.reactnativestripesdk.StripeSdkCardViewManager
04-20 07:18:39.673  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.reactnativestripesdk.AuBECSDebitFormViewManager
04-20 07:18:39.673  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.reactnativestripesdk.StripeContainerManager
04-20 07:18:39.674  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.host.exp.exponent.modules.api.components.reactnativestripesdk.CardFormViewManager
04-20 07:18:39.675  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.expo.modules.adapters.react.views.SimpleViewManagerAdapter
04-20 07:18:39.675  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.expo.modules.adapters.react.views.ViewGroupManagerAdapter
04-20 07:18:39.676  2197  3965 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class abi44_0_0.expo.modules.kotlin.views.SimpleViewManagerWrapper
04-20 07:18:39.680  2197  3965 D CatalystInstanceImpl: Loading script from file
04-20 07:18:39.691  2197  3967 D g       : WARNING: getPackageName called on ScopedContext
04-20 07:18:39.693   517   614 D ConnectivityService: NetReassign [no changes]
04-20 07:18:39.697  2197  2197 W unknown:ReactNative: Packager connection already open, nooping.
04-20 07:18:39.699  2197  2957 D g       : WARNING: getPackageName called on ScopedContext
04-20 07:18:39.699  2197  2957 D g       : WARNING: getPackageName called on ScopedContext
04-20 07:18:39.699  2197  2957 W GooglePlayServicesUtil: host.exp.exponent requires the Google Play Store, but it is missing.
04-20 07:18:39.699  2197  2957 W GoogleApiManager: The service for h.f.c.f.f.m.a0 is not available: b{statusCode=SERVICE_INVALID, resolution=null, message=null}
04-20 07:18:39.970  2197  2219 W System  : A resource failed to call release. 
04-20 07:18:39.970  2197  2219 W System  : A resource failed to call release. 
04-20 07:18:40.016  2197  3966 E unknown:ReactNative: Exception in native call
04-20 07:18:40.016  2197  3966 E unknown:ReactNative: com.facebook.jni.CppException: No identifiers allowed directly after numeric literal
04-20 07:18:40.016  2197  3966 E unknown:ReactNative: 
04-20 07:18:40.016  2197  3966 E unknown:ReactNative: no stack
04-20 07:18:40.016  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
04-20 07:18:40.016  2197  3966 E unknown:ReactNative: 	at android.os.Handler.handleCallback(Handler.java:938)
04-20 07:18:40.016  2197  3966 E unknown:ReactNative: 	at android.os.Handler.dispatchMessage(Handler.java:99)
04-20 07:18:40.016  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:1)
04-20 07:18:40.016  2197  3966 E unknown:ReactNative: 	at android.os.Looper.loop(Looper.java:223)
04-20 07:18:40.016  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:8)
04-20 07:18:40.016  2197  3966 E unknown:ReactNative: 	at java.lang.Thread.run(Thread.java:923)
04-20 07:18:40.017  2197  3966 E ReactNativeJNI: Attempting to call JS function on a bad application bundle: HMRClient.setup()
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: Exception in native call
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: java.lang.RuntimeException: Attempting to call JS function on a bad application bundle: HMRClient.setup()
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at android.os.Handler.handleCallback(Handler.java:938)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at android.os.Handler.dispatchMessage(Handler.java:99)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:1)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at android.os.Looper.loop(Looper.java:223)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:8)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at java.lang.Thread.run(Thread.java:923)
04-20 07:18:40.017  2197  3966 E ReactNativeJNI: Attempting to call JS function on a bad application bundle: RCTDeviceEventEmitter.emit()
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: Exception in native call
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: java.lang.RuntimeException: Attempting to call JS function on a bad application bundle: RCTDeviceEventEmitter.emit()
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at android.os.Handler.handleCallback(Handler.java:938)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at android.os.Handler.dispatchMessage(Handler.java:99)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:1)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at android.os.Looper.loop(Looper.java:223)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:8)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at java.lang.Thread.run(Thread.java:923)
04-20 07:18:40.017  2197  3966 E ReactNativeJNI: Attempting to call JS function on a bad application bundle: AppRegistry.runApplication()
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: Exception in native call
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: java.lang.RuntimeException: Attempting to call JS function on a bad application bundle: AppRegistry.runApplication()
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at android.os.Handler.handleCallback(Handler.java:938)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at android.os.Handler.dispatchMessage(Handler.java:99)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:1)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at android.os.Looper.loop(Looper.java:223)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:8)
04-20 07:18:40.017  2197  3966 E unknown:ReactNative: 	at java.lang.Thread.run(Thread.java:923)
04-20 07:18:40.018  2197  3966 E ReactNativeJNI: Attempting to call JS function on a bad application bundle: RCTDeviceEventEmitter.emit()
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: Exception in native call
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: java.lang.RuntimeException: Attempting to call JS function on a bad application bundle: RCTDeviceEventEmitter.emit()
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: 	at android.os.Handler.handleCallback(Handler.java:938)
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: 	at android.os.Handler.dispatchMessage(Handler.java:99)
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:1)
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: 	at android.os.Looper.loop(Looper.java:223)
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:8)
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: 	at java.lang.Thread.run(Thread.java:923)
04-20 07:18:40.018  2197  3966 E ReactNativeJNI: Attempting to call JS function on a bad application bundle: RCTDeviceEventEmitter.emit()
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: Exception in native call
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: java.lang.RuntimeException: Attempting to call JS function on a bad application bundle: RCTDeviceEventEmitter.emit()
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: 	at android.os.Handler.handleCallback(Handler.java:938)
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: 	at android.os.Handler.dispatchMessage(Handler.java:99)
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:1)
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: 	at android.os.Looper.loop(Looper.java:223)
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: 	at abi44_0_0.com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:8)
04-20 07:18:40.018  2197  3966 E unknown:ReactNative: 	at java.lang.Thread.run(Thread.java:923)
04-20 07:18:40.036  2197  3967 D g       : WARNING: getPackageName called on ScopedContext
04-20 07:18:40.037   309   309 D goldfish-address-space: claimShared: Ask to claim region [0x3ec000000 0x3ec9a4000]
04-20 07:18:40.041   309   309 D goldfish-address-space: claimShared: Ask to claim region [0x3ef034000 0x3ef9d8000]
04-20 07:18:40.041   309   309 D goldfish-address-space: claimShared: Ask to claim region [0x3ed348000 0x3edcec000]
04-20 07:18:40.591   409   409 I perfetto: probes_producer.cc:329  Producer stop (id=32)
04-20 07:18:40.592   421   421 I perfetto: ng_service_impl.cc:1948 Tracing session 32 ended, total sessions:1
04-20 07:18:41.901   517  3218 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4

@NightlySide
Copy link
Author

I tried to run js-waku with vitejs and snowpack, both with polyfills however none of them worked except from webpack.. Maybe this is linked to the fact it doesn't work on react native?

@D4nte
Copy link
Contributor

D4nte commented May 2, 2022

FYI:

Did a fix for some of the big int issues: #717

To solve the latest issue with hex string used with big-integer, try: https://github.com/Path-Check/universal-verifier-app/blob/dd41eaf8c2b3f927541112ec71a65ca14cc2424d/index.js.

If it works. I can consider including it in js-waku.

@NightlySide
Copy link
Author

NightlySide commented May 4, 2022

I made a new poc for fast iteration and gathering my notes : https://github.com/NightlySide/Waku-ReactNative-Expo-PoC
Right now I guess rn-nodeify can be removed. It currently lacks two things (that I know of):

  • polyfill for the subtle crypto api
  • System random byte generator polyfill

EDIT: the second point can be eleminated using "react-native-get-random-values"

@fryorcraken
Copy link
Collaborator

Superseded by #1327

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants