
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-intl-native
Advanced tools
Convenience components for react-intl's `format*` API in React Native
react-intl convinience components for React Native
While react-intl allows us to use formatMessage or passing in a function, this becomes tiresome if you have to do this for each. This module does the latter and wraps it all in a Text component allowing you to pass in style to provide custom styling.
$ npm install react-intl-native
Wrap your main component inside react-intls IntlProvider like you would in your web application:
import IntlProvider from 'react-intl';
<IntlProvider locale="en">
<MainView />
</IntlProvider>
<FormattedDate
weekday="long"
value={Date.now()}
style={{ fontWeight: 'bold' }} />
More information on date formatting options: https://github.com/yahoo/react-intl/wiki/Components#date-formatting-components
<FormattedHTMLMessage
defaultMessage="Hello there"
style={{ fontWeight: 'bold' }} />
<FormattedMessage
defaultMessage="Hello there"
style={{ fontWeight: 'bold' }} />
This is the only component that differs slightly from the original component. For the formatting style you need to use formatStyle instead of style. style is being reserved for the component styling.
<FormattedNumber
formatStyle="currency"
value={1000}
style={{ fontWeight: 'bold' }} />
More information on number formatting options: https://github.com/yahoo/react-intl/wiki/Components#formattednumber
<FormattedPlural
value={10}
one="message"
other="messages"
style={{ fontWeight: 'bold' }} />
More information on plural formatting options: https://github.com/yahoo/react-intl/wiki/Components#formattedplural
<FormattedRelative
value={Date.now()}
style={{ fontWeight: 'bold' }} />
More information on date formatting options: https://github.com/yahoo/react-intl/wiki/Components#date-formatting-components
<FormattedTime
value={Date.now()}
hour="numeric"
style={{ fontWeight: 'bold' }} />
More information on date formatting options: https://github.com/yahoo/react-intl/wiki/Components#date-formatting-components
For more information, take a look the react-intl documentation: https://github.com/yahoo/react-intl/wiki/Components
MIT
FAQs
Convenience components for react-intl's `format*` API in React Native
The npm package react-intl-native receives a total of 125 weekly downloads. As such, react-intl-native popularity was classified as not popular.
We found that react-intl-native demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.