Package Exports
- react-fixed-bottom
- react-fixed-bottom/dist/index.esm.js
- react-fixed-bottom/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-fixed-bottom) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-fixed-bottom
React component to make fixed:bottom styles usable in Safari mobile.
Features
- Set the CSS properties of the wrapped children to:
{
position: 'fixed';
bottom: offset;
}- Safari mobile user agent detection
- Reacts to Safari mobile overflow bar display. If the bar hides a fixed bottom element, it is repositioned so it becomes visible in its expected position.
API
The component accepts two props:
childrena single React element to reposition when the Safari overflow bar appears.offsetexpected offset inpxfrom the bottom of the viewport.
Contributing
Fork the main repo and submit PRs