folly::toJson when wrapping <View> around <GLView> (AR)

#1

Whenever I try to just wrap a <View> around <GLView/> using an AR camera session I get:

It would be nice to be able to put more than just a GLView on my iPhone screen.

0 Likes

#2

Hi! Sorry about this. Do you think you could provide a minimal example on Snack? Thanks!

0 Likes

#3

Here you go:
https://snack.expo.io/BJCiBj1yM

0 Likes

#4

cc: @nikki any ideas?

0 Likes

#5

The View here will be of zero size, try using flex: 1 in it, like here: https://snack.expo.io/BkNaamZyG

But yeah, this shouldn’t cause a native error, will work on fixing that.

0 Likes

#6

No way! Aw man I tried doing that on the view and then the GLView but didn’t do it to both!

Thanks for the assistance with this one!

0 Likes

#7

No worries. :slight_smile: Also guarding against the native error in this update and released a new version on npm: https://github.com/expo/expo-three/commit/3d111e1695e65f04b0a08f6047e14059796b6617

0 Likes