Skip to content

Commit 02b7709

Browse files
authored
Merge pull request bartgryszko#3 from brentvatne/exponent
Make example run on Exponent
2 parents 3c0d152 + d5396f3 commit 02b7709

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+58
-2165
lines changed

README.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ React Native component for creating circular slider.
2929
Import Circular Slider
3030

3131
```js
32-
import { CircularSlider } from 'react-native-circular-slider';
32+
import CircularSlider from 'react-native-circular-slider';
3333
```
3434

3535
Use as follows:
@@ -73,23 +73,30 @@ You can configure the passing by following props:
7373

7474
## Working example app
7575

76-
You can find working example in the `example` directory of this repository. You can run it by:
76+
You can find working example in the `example` directory of this
77+
repository.
78+
79+
The easiest way to run it is with Exponent: https://getexponent.com/@community/bedtime
80+
81+
If you'd rather build it locally, follow these steps:
82+
83+
1. [Download XDE](https://docs.getexponent.com/versions/latest/introduction/installation.html)
84+
2. Clone the repo and install dependencies
85+
86+
```sh
87+
git clone https://github.com/bgryszko/react-native-circular-slider.git
88+
cd react-native-circular-slider/example/Bedtime
89+
npm install
90+
```
91+
3. Open the project with XDE
7792

78-
```sh
79-
git clone https://github.com/bgryszko/react-native-circular-slider.git
80-
cd react-native-circular-slider/example/Bedtime
81-
npm install
82-
open ios/Bedtime.xcodeproj
83-
```
84-
XCode will open. Click Run button and that's it.
8593

8694
## Author
8795

8896
Bartosz Gryszko (b@gryszko.com)
8997

9098
For new components and updates [follow me on twitter](http://twitter.com/bgryszko).
9199

92-
93100
## License
94101

95102
MIT

example/Bedtime/.babelrc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
"presets": ["react-native"]
3-
}
2+
"presets": [
3+
"babel-preset-exponent"
4+
]
5+
}

example/Bedtime/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ buck-out/
4040
\.buckd/
4141
android/app/libs
4242
*.keystore
43+
44+
.exponent

example/Bedtime/__tests__/index.android.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

example/Bedtime/__tests__/index.ios.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

example/Bedtime/android/app/BUCK

Lines changed: 0 additions & 66 deletions
This file was deleted.

example/Bedtime/android/app/build.gradle

Lines changed: 0 additions & 140 deletions
This file was deleted.

example/Bedtime/android/app/proguard-rules.pro

Lines changed: 0 additions & 66 deletions
This file was deleted.

example/Bedtime/android/app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)