react-native-wlkt
Version:
Simple and fully customizable walkthrough guide for your app
18 lines (13 loc) • 337 B
JavaScript
import React from 'react';
const _components = {};
const getComponents = () => {
return _components;
};
const WalkthroughComponent = ({ children, id, ...props }) =>
React.cloneElement(children, {
ref: reference => {
_components[id] = reference;
},
...props
});
export { WalkthroughComponent, getComponents };