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

Logging refs does not work in 22.0.0 and 21.0.0 in development mode only in debug mode #896

Closed
itsmeek opened this issue Nov 1, 2017 · 7 comments
Labels
needs more info To be used when awaiting reporter response

Comments

@itsmeek
Copy link

itsmeek commented Nov 1, 2017

In the following screenshot, in 22.0.0, console logging the ref causes the app to crash but works fine when in debug mode. In 21.0.0, the app does not crash but nothing shows up in expos console
screen shot 2017-11-01 at 11 30 38 am

@ide
Copy link
Member

ide commented Nov 1, 2017

Can you please clarify what it is about refs that aren't working? Is it just logging them?

@ide ide added the needs more info To be used when awaiting reporter response label Nov 1, 2017
@itsmeek itsmeek changed the title Refs does not work in 22.0.0 and 21.0.0 Logging refs does not work in 22.0.0 and 21.0.0 in development mode only in debug mode Nov 1, 2017
@itsmeek
Copy link
Author

itsmeek commented Nov 1, 2017

Just the logs aren't showing. I changed the title to clarify the issue

@ngtan
Copy link

ngtan commented Mar 22, 2018

The same issue in 25.0.0

@ngtan
Copy link

ngtan commented Mar 23, 2018

Steps to reproduce:
Create an application follows steps from the below repo:
https://github.com/react-community/create-react-native-app

<View style={styles.container} ref={console.log}> // another code here </View>

Try to run on device.

@ngtan
Copy link

ngtan commented Mar 30, 2018

I did a simple demo here
https://github.com/ngtan/hello-ref

Help it's useful and fixed soon.

@sjchmiela
Copy link
Contributor

Hey guys! The app is crashing and the logs aren't showing for a simple reason — an argument to ref method is a very deep and big cycle object and Expo 25 can't handle those properly. We've fixed this issue on master and the fix will go out in SDK 32. Thank you for your patience. 🙂

Similar issue: #478

@lock
Copy link

lock bot commented Jun 13, 2019

This thread has been automatically 🔒locked🔒 since there has not been any recent activity after it was closed. Oftentimes the underlying causes of old issues and steps to reproduce them are different from those of new issues. Please open a new issue for related bugs.

@lock lock bot added the outdated label Jun 13, 2019
@lock lock bot locked and limited conversation to collaborators Jun 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs more info To be used when awaiting reporter response
Projects
None yet
Development

No branches or pull requests

4 participants