UNPKG

@brijen/react-native-multistep

Version:

A lightweight multi-step view component for React Native with smooth transitions using Reanimated.

33 lines (31 loc) 750 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _reactNative = require("react-native"); var _jsxRuntime = require("react/jsx-runtime"); /** * Represents a single step in a multi-step process. * Can display a title, a custom title component, and any child content. * * @example * ```tsx * <Step title="Step 1"> * <Text>Content for step 1</Text> * </Step> * ``` */ const Step = props => { const { children, stepContainerStyle } = props; return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, { style: stepContainerStyle, testID: "step-container", children: children }); }; var _default = exports.default = Step; //# sourceMappingURL=Step.js.map