-
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.
Add SVGExample + test + add to the readme
- Loading branch information
1 parent
1ffc097
commit 8c88097
Showing
4 changed files
with
34 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Libraries | ||
import React from 'react'; | ||
import {StyleSheet, View} from 'react-native'; | ||
import SVG from 'react-native-svg'; | ||
|
||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
}, | ||
}); | ||
|
||
|
||
// TODO(mark): We need to add a example components from react-native-svg. | ||
export default () => ( | ||
<View /> | ||
); |
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,14 @@ | ||
// Libraries | ||
import 'react-native'; | ||
import React from 'react'; | ||
import Renderer from 'react-test-renderer'; | ||
|
||
// Components | ||
import SVGExample from '../SVGExample'; | ||
|
||
|
||
it('renders correctly', () => { | ||
const tree = Renderer.create( | ||
<SVGExample /> | ||
); | ||
}); |