Skip to content

Commit 70f6044

Browse files
committed
bigfix: add Props folder after running npm i
Also readme updated for the same
1 parent 95b420c commit 70f6044

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

README.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,33 @@
3232

3333
![React Native Elements UI Toolkit](https://github.com/react-native-elements/playground/blob/master/public/thumbnail.png)
3434

35-
3635
### Installation
3736

38-
3937
1. Clone the repo
38+
4039
```sh
4140
git clone https://github.com/react-native-elements/playground.git
4241
cd playground
4342
```
44-
2. Install NPM packages
43+
44+
2. Install NPM packages, add Playground Props, react-native-elements folder
45+
4546
```sh
4647
npm i
4748
```
49+
4850
3. Prepare (File path is UNIX based, might not work with Windows. PR Appreciated)
51+
4952
```sh
5053
npm run prepare
5154
```
55+
5256
4. Run the development server
57+
5358
```sh
5459
npm start
5560
```
5661

57-
5862
## Releated Projects
5963

6064
<a href="https://github.com/react-native-elements/react-native-elements">
@@ -69,19 +73,14 @@ npm start
6973

7074
## Documentation
7175

72-
[View the full docs of React Native elements here](https://reactnativeelements.com/docs/overview)
76+
[View the full docs of React Native elements here](https://reactnativeelements.com/docs/overview)
7377

7478
## Contributing
7579

76-
77-
78-
7980
Interested in contributing to this repo? Check out our
8081
[Contributing Guide](https://reactnativeelements.com/docs/contributing)
8182
and submit a PR for a new feature/bug fix.
8283

83-
84-
8584
### First Contributors
8685

8786
We encourage everyone to contribute & submit PR's especially first-time
@@ -95,7 +94,6 @@ an
9594
or a
9695
[pull request](https://github.com/react-native-elements/playground/pulls).
9796

98-
9997
### Slack Community
10098

10199
In case you have any other question or would like to come say **Hi!** to the RNE
@@ -161,5 +159,3 @@ Do you use React Native Elements in production? If so, consider supporting this
161159
[![React Native Elements Backer](https://opencollective.com/react-native-elements/sponsor/17/avatar)](https://opencollective.com/react-native-elements/sponsor/17/website)
162160
[![React Native Elements Backer](https://opencollective.com/react-native-elements/sponsor/18/avatar)](https://opencollective.com/react-native-elements/sponsor/18/website)
163161
[![React Native Elements Backer](https://opencollective.com/react-native-elements/sponsor/19/avatar)](https://opencollective.com/react-native-elements/sponsor/19/website)
164-
165-

injectLatestProps.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
const { exec } = require("child_process");
2-
exec(
1+
const { execSync } = require("child_process");
2+
3+
execSync(
34
"git clone https://github.com/react-native-elements/react-native-elements --depth=1",
45
(err, stdout, stderr) => {
56
if (err) {
@@ -12,7 +13,9 @@ exec(
1213
console.log(`stderr: ${stderr}`);
1314
}
1415
);
15-
exec("cp -r ./react-native-elements/website/docs/props ./src/content/Props"),
16+
17+
execSync(
18+
"cp -r ./react-native-elements/website/docs/props ./src/content/Props",
1619
(err, stdout, stderr) => {
1720
if (err) {
1821
// node couldn't execute the command
@@ -22,4 +25,5 @@ exec("cp -r ./react-native-elements/website/docs/props ./src/content/Props"),
2225
// the *entire* stdout and stderr (buffered)
2326
console.log(`stdout: ${stdout}`);
2427
console.log(`stderr: ${stderr}`);
25-
};
28+
}
29+
);

0 commit comments

Comments
 (0)