mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-08 11:10:03 +00:00
fix(react-sketchapp): fixed Svg export
This commit is contained in:
@@ -1 +1,3 @@
|
||||
export * from './Svg';
|
||||
import Svg from './Svg';
|
||||
|
||||
export default Svg;
|
||||
|
||||
@@ -6,11 +6,14 @@ import {
|
||||
Text,
|
||||
StyleSheet,
|
||||
TextStyles,
|
||||
Svg,
|
||||
render,
|
||||
renderToJSON,
|
||||
Platform,
|
||||
} from 'react-sketchapp';
|
||||
|
||||
import Circle from './lib/components/Svg/Circle';
|
||||
|
||||
// the styles object should be a mapped typed mapping the keys of the object literal to numbers
|
||||
const styles = StyleSheet.create({
|
||||
red: {
|
||||
@@ -69,3 +72,9 @@ TextStyles.create(context as any, {
|
||||
|
||||
const shouldBeSketch = Platform.OS;
|
||||
const shouldBe1 = Platform.Version;
|
||||
|
||||
const svg = () => (
|
||||
<Svg viewBox="0 0 24 24">
|
||||
<Circle cx="12" cy="12" r="6" fill="#ff0000" />
|
||||
</Svg>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user