You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I've looked through issues, looks like it wasn't reported yet.
I have option to switch between locales, that have not been added to IntlProvider yet.
Expected behavior
I want to get YellowBox message that react-intl is using defaultLocale as warning.
Current behavior
I get runtime error and my app crashes. I believe that this is because this warning is reported with console.error() instead of console.warn()
Step to reproduce for BUG REPORT
I added react-intl with yarn and switched to locale I didn't add in debug mode react-native run-ios
exportdefaultclassAppextendsComponent{staticdefaultProps={locale: 'ru'// comes from redux};render(){const{locale}=this.props;return(<IntlProvidertextComponent={Text}locale={locale}><View><FormattedMessageid='Example'defaultMessage='Example'/><AppRouter/></View></IntlProvider>);}}
Your Environment
Building
Executable
Version
npm ls react-intl
v2.4
npm ls react-native
v0.54.1
npm --version
5.6.0
node --version
9.4.0
OS
Version
macOS Sierra
10.12.6
The text was updated successfully, but these errors were encountered:
Hello! I've looked through issues, looks like it wasn't reported yet.
I have option to switch between locales, that have not been added to
IntlProvider
yet.Expected behavior
I want to get
YellowBox
message that react-intl is usingdefaultLocale
as warning.Current behavior
I get runtime error and my app crashes. I believe that this is because this warning is reported with
console.error()
instead ofconsole.warn()
Step to reproduce for BUG REPORT
I added
react-intl
with yarn and switched to locale I didn't add in debug modereact-native run-ios
Your Environment
Building
npm ls react-intl
npm ls react-native
npm --version
node --version
The text was updated successfully, but these errors were encountered: