Skip to content

Commit e0bae96

Browse files
authored
docs: fix incorrect imports (#2656)
# Summary `USAGE.md` had some incorrect import paths. This minor PR fixes those. ## Test Plan Test that the updated import paths are functional, and are consistent with the rest of `USAGE.md`. ### What's required for testing (prerequisites)? N/A ### What are the steps to reproduce (after prerequisites)? N/A ## Compatibility N/A ## Checklist <!-- Check completed item, when applicable, via: [X] --> - I have tested this on a device and a simulator - I added documentation in `README.md` - I updated the typed files (typescript) - I added a test for the API in the `__tests__` folder Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
1 parent a097be0 commit e0bae96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ existing in a different way and `fallback` if you want to render another compone
125125

126126
```jsx
127127
import * as React from 'react';
128-
import { SvgUri } from 'react-native-svg/css';
128+
import { SvgUri } from 'react-native-svg';
129129
import { SvgFallback } from './components/SvgFallback';
130130

131131
export default () => {
@@ -315,7 +315,7 @@ If xml string contains CSS in `<style>` element, use `SvgCss`:
315315

316316
```jsx
317317
import * as React from 'react';
318-
import { SvgCss } from 'react-native-svg';
318+
import { SvgCss } from 'react-native-svg/css';
319319

320320
const xml = `
321321
<svg width="32" height="32" viewBox="0 0 32 32">

0 commit comments

Comments
 (0)