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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using fbt() React Native components' properties #127
Comments
Can you try to cast this to string? |
Casting to Having said that, this doesn't remove the problem that may contain nested RN elements that cannot be serialized to a string properly. See this explanation: For a RN element that requires a plain text attribute, developers should use the fbs() / API ( But the real solution would be to convince the React Native team to update their API so that low-level components that need a text attribute could accept an object with a dedicated method. E.g. Basically, if RN components accepted an object that had a |
I usually use <TextInput
placeholder={fbt('test', 'test').toString()}
/> |
馃悰 Bug Report
After adding fbt to my react native app I'm getting an exception when trying to use fbt() in RN component's properties.
To Reproduce
The following triggers an exception:
<TextInput
placeholder={fbt('test', 'test')}
/>
Expected behavior
The placeholder value should be set to "test".
Link to repo (highly encouraged) or paste
Exception:
envinfo
The text was updated successfully, but these errors were encountered: