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

Android fixes - convert firebase longs to doubles, implement ServerValue.TIMESTAMP #79

Merged
merged 2 commits into from
Oct 21, 2016

Conversation

BlooJeans
Copy link
Contributor

@BlooJeans BlooJeans commented Oct 20, 2016

Some additional reading regarding java longs -> javascript, for those interested
http://stackoverflow.com/questions/31930406/storing-long-type-in-firebase

facebook/react-native#9685

Retrieving long values (e.g. javascript timestamps) from firebase were getting casted to int's and potentially overflowing

Because javascript only has 53 bits of precision, we can't use longs,
but we want to support numbers bigger than ints... doubles to the rescue!
@auser auser merged commit c5092b9 into fullstackreact:master Oct 21, 2016
@BlooJeans BlooJeans deleted the android-fixes branch November 9, 2016 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants