rough-native
Version:
Create graphics using HTML Canvas or SVG with a hand-drawn, sketchy, appearance. Features comprehensive React hooks, memory management, and React 18 concurrent rendering support.
16 lines (15 loc) • 521 B
JavaScript
import { RoughGenerator } from './generator';
import { RoughReactNativeSVG } from './react-native-svg';
// Export React hooks for React Native integration
export { useRough, useRoughShape, useRoughShapes, useStableRough, useDeepMemoWithDebug, debugUtils, } from './react-hooks';
export default {
reactNativeSvg(config) {
return new RoughReactNativeSVG(config);
},
generator(config) {
return new RoughGenerator(config);
},
newSeed() {
return RoughGenerator.newSeed();
},
};