ReactNativeLocalization icon indicating copy to clipboard operation
ReactNativeLocalization copied to clipboard

formatString function update request

Open JDWaghela opened this issue 3 years ago • 1 comments

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.

JDWaghela avatar May 08 '21 13:05 JDWaghela

same as here!

ceu avatar Jun 08 '21 01:06 ceu