question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`concat` issue with Integer Value on Android

See original GitHub issue

Hi, first of all, thanks for the great work. I’m trying to use the concat function to animate a text using ReText component from react-native-redash, but look like the concat function always add “.0” to the end of the animated number node on Android .

My Code

const price = new Value(44);
const MyString = concat('$', price);  

Epcpectd Result

MyString should be $44

Result

IOS : $44 Android : $44.0

Note: The problem is Not related to Retext Component, I tried passing the MyString value to the javascript side using call function and noticed the same behavior.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
jakub-gonetcommented, Apr 2, 2020

Hi @yjose, thanks for submitting this issue! I confirmed it’s reproducible. Your workaround could be improved by using Double values directly, I’ll prepare PR for this one.

2reactions
GoMinocommented, Apr 3, 2020

Thanks, @yjose @jakub-gonet, I just tried your PR and it works great!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to concatenate strings and integer into a variable
You'll have to get the String out of the resource file this way, then concatenate as normal. Share.
Read more >
How to concatenate two Integer values into one?
Given two integers n1 and n2, the task is to concatenate these two integers into one integer. Example: Input: n1 = 12, n2...
Read more >
Concatenate string to an int value in Java
To concatenate a string to an int value, use the concatenation operator. Here is our int. int val = 3; Now, to concatenate...
Read more >
String concat with Integer - implicit type conversion
It comes from Java. There you have object to string concatenation but no “smart” strings. In Kotlin it is much more logical though....
Read more >
Java Convert int to String
valueOf() and Integer.toString() methods. Alternatively, we can use String.format() method, string concatenation operator etc. Java Convert int to String ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found