React-flexbox is a React component library (v3.1.4) that implements CSS flexbox using inline styles, providing a View component with props for row, column, auto, width, height, and className. It supports React 0.14–16 and requires an ES6 transpiler (no transpiled build included). Key differentiators: lightweight, no external CSS, and deprecated FlexRow/FlexColumn wrappers. The library is in maintenance mode with infrequent updates.
npm install react-flexboxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a row layout with two columns on the left (auto width) and a main content area on the right.
Replace <FlexRow> with <View row> and <FlexColumn> with <View column>.
Ensure your webpack/babel config includes @babel/preset-env or similar.
Use width="100px" for absolute units or width={2} for flex-grow; do not mix types.Always pass a string, e.g., className="my-class".
Use <script src="https://unpkg.com/react-flexbox/dist/react-flexbox.js"></script> and access ReactFlexbox.default.
Run npm install react-flexbox --save and ensure import path is 'react-flexbox' (not './react-flexbox').
Add Babel to your build pipeline or use CommonJS require: const View = require('react-flexbox').