File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ code. You can install and link the HelloWorld component like this:
1212
1313 npm install react-native-helloworld
1414 react-native link react-native-helloworld
15-
15+
1616## Explanation
1717
1818For a full explanation of the layout, see
@@ -92,3 +92,14 @@ project settings), and hit ⌘+R.
9292
9393Once you have finished your components, you can run a normal ` npm publish ` from the root folder. The
9494` /tests ` and ` /example ` folders are automatically excluded from the package.
95+
96+ Once installed and linked in a project, your components can easily be imported:
97+
98+ ```` javascript
99+ import HelloWorld from ' react-native-helloworld' ;
100+
101+ function MyComponent () {
102+ return < HelloWorld / > ;
103+ }
104+ ````
105+
You can’t perform that action at this time.
0 commit comments