Package Exports
- react-photo-frame
- react-photo-frame/lib/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-photo-frame) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React-Photo-Frame
Give Frame and photo.
Expected Output

Usage
import PhotoFrame from "react-photo-frame";
const [trigger, setTrigger] = useState(false);
const callbackImage = (cb) => {
console.log(cb);
setTrigger(false);
};
const triggerCallBack = () => {
setTrigger(true);
};
return (
<div className="mycanvas">
<PhotoFrame
frameWidth={300}
frameHeight={300}
frameDesign="https://i.ibb.co/T0T2JNS/dd.png"
frameImage="https://i.ibb.co/846vTdc/download.jpg"
callbackImage={callbackImage}
trigger={trigger}
frameBorder={[10, 10, 50, 10]}
/>
<button
type="button"
className="btn m-0 btn-dark fs10 rounded-0"
onClick={triggerCallBack}
>
Submit
</button>
</div>
);
};