Skip to content

Commit

Permalink
feat(example): add more SVGs samples
Browse files Browse the repository at this point in the history
  • Loading branch information
uqmessias committed Dec 11, 2019
1 parent f06098b commit a5d2c3b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import styles, { Constants } from './styles';

const App = () => {
const renderItem = useCallback(
({ item: { title, xml }, index }) => (
({ item: { title, xml, uri }, index }) => (
<View
style={[
styles.itemContainer,
Expand All @@ -27,6 +27,7 @@ const App = () => {
<View style={styles.svgContainer}>
<SVGRenderer
svgXmlData={xml}
source={!!uri ? { uri } : undefined}
height={Constants.cellSize}
width={Constants.cellSize}
/>
Expand Down
8 changes: 8 additions & 0 deletions example/src/assets/svgs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a5d2c3b

Please sign in to comment.