-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged JUIP-124 and solved conflicts
- Loading branch information
Showing
7 changed files
with
217 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import {create} from 'react-test-renderer'; | ||
import LoadingSvg from './index'; | ||
|
||
describe('LoadingSvg component', () => { | ||
it('render correctly', () => { | ||
const {toJSON} = create(<LoadingSvg size={20} />); | ||
|
||
expect(toJSON()).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import Svg, {Path} from 'react-native-svg'; | ||
import React from 'react'; | ||
import {Animated, ViewProps} from 'react-native'; | ||
import {white} from '../../../theme/palette'; | ||
|
||
interface IanimatedView extends Animated.AnimatedProps<ViewProps> { | ||
size?: number; | ||
color?: string; | ||
} | ||
|
||
const LoadingSvg = ({size, color, ...props}: IanimatedView) => { | ||
return ( | ||
<Animated.View {...props}> | ||
<Svg x="0px" y="0px" width={size} height={size} viewBox="0 0 163 163"> | ||
<Path | ||
d="M134.1,136.4c-30.3,29.1-78.5,28-107.5-2.3c-29.1-30.3-28-78.5,2.3-107.5s78.5-28,107.5,2.3" | ||
fill="none" | ||
stroke={white.dark} | ||
strokeWidth="10.5546" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
<Path | ||
id="path-color" | ||
d="M78.4,5.5c42-1.7,77.4,30.9,79.1,72.9c1.7,42-30.9,77.4-72.9,79.1c-42,1.7-77.4-30.9-79.1-72.9" | ||
fill="none" | ||
stroke={color} | ||
strokeWidth="10.5546" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
</Svg> | ||
</Animated.View> | ||
); | ||
}; | ||
|
||
export default LoadingSvg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.