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

formatString function update request #203

Open
JDWaghela opened this issue May 8, 2021 · 1 comment
Open

formatString function update request #203

JDWaghela opened this issue May 8, 2021 · 1 comment

Comments

@JDWaghela
Copy link

Is it possible to update formatString code to handle dot accessor value?

Currently Supported and Working
let data = { firstName : "React", lastName : "Native" };
Example : formatString("Hello, {firstName} {lastName}", data),

Required
let data = { data : { firstName : "React", lastName : "Native" } };
example : formatString("Hie, {data.firstName} {data.lastName}", data).

It would be better if its handled by formatString itself.

@ceu
Copy link

ceu commented Jun 8, 2021

same as here!

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

No branches or pull requests

2 participants