@times-components/message-bar
v0.7.86
Published
A component for showing user notifications
Downloads
3,082
Readme
MessageBar
A context to allow consumers to show a floating message over an article.
Example Usage
const TestConsumer = () => (
<Context.Consumer>
{({ showMessage }) => (
<TouchableOpacity onPress={() => showMessage("foo")} />
)}
</Context.Consumer>
);
...
<MessageManager animate delay={3000} scale={scales.medium}>
<TestConsumer />
</MessageManager>
Contributing
Please read CONTRIBUTING.md before contributing to this package
Running the code
Please see our main README.md to get the project running locally
Development
The code can be formatted and linted in accordance with the agreed standards.
yarn fmt
yarn lint
Testing
Testing can be done on each platform individually
yarn test:web
Visit the official Storybook