Skip to content

Commit c5a1997

Browse files
Fix example app (callstack#236)
* Fix example app * Bump orb version
1 parent 3fd5a2f commit c5a1997

File tree

6 files changed

+17
-14
lines changed

6 files changed

+17
-14
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
rn: react-native-community/react-native@1.2.1
4+
rn: react-native-community/react-native@2.0.1
55

66
jobs:
77
checkout_code:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ yarn-error.log
4040
buck-out/
4141
\.buckd/
4242
*.keystore
43+
!debug.keystore
4344

4445
# fastlane
4546
#

example/App.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {Component} from 'react';
2-
import {StyleSheet, Text, ScrollView, View} from 'react-native';
2+
import {StyleSheet, Text, ScrollView, View, Platform} from 'react-native';
33
import {examples} from './SliderExample';
44

55
type Props = {};
@@ -12,12 +12,14 @@ export default class App extends Component<Props> {
1212
<Text testID="testTextId" style={styles.title}>
1313
{'<Slider />'}
1414
</Text>
15-
{examples.map((e, i) => (
16-
<View key={`slider${i}`}>
17-
<Text>{e.title}</Text>
18-
{e.render()}
19-
</View>
20-
))}
15+
{examples
16+
.filter(e => !e.platform || e.platform === Platform.OS)
17+
.map((e, i) => (
18+
<View key={`slider${i}`}>
19+
<Text>{e.title}</Text>
20+
{e.render()}
21+
</View>
22+
))}
2123
</ScrollView>
2224
);
2325
}

example/android/app/debug.keystore

2.2 KB
Binary file not shown.

example/ios/Podfile.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ PODS:
183183
- React-jsi (= 0.62.2)
184184
- React-jsinspector (0.62.2)
185185
- react-native-slider (3.0.2):
186-
- React
186+
- React-Core
187187
- React-RCTActionSheet (0.62.2):
188188
- React-Core/RCTActionSheetHeaders (= 0.62.2)
189189
- React-RCTAnimation (0.62.2):
@@ -261,7 +261,7 @@ DEPENDENCIES:
261261
- React-jsi (from `../../node_modules/react-native/ReactCommon/jsi`)
262262
- React-jsiexecutor (from `../../node_modules/react-native/ReactCommon/jsiexecutor`)
263263
- React-jsinspector (from `../../node_modules/react-native/ReactCommon/jsinspector`)
264-
- "react-native-slider (from `../../node_modules/@react-native-community/slider`)"
264+
- "react-native-slider (from `../node_modules/@react-native-community/slider`)"
265265
- React-RCTActionSheet (from `../../node_modules/react-native/Libraries/ActionSheetIOS`)
266266
- React-RCTAnimation (from `../../node_modules/react-native/Libraries/NativeAnimation`)
267267
- React-RCTBlob (from `../../node_modules/react-native/Libraries/Blob`)
@@ -309,7 +309,7 @@ EXTERNAL SOURCES:
309309
React-jsinspector:
310310
:path: "../../node_modules/react-native/ReactCommon/jsinspector"
311311
react-native-slider:
312-
:path: "../../node_modules/@react-native-community/slider"
312+
:path: "../node_modules/@react-native-community/slider"
313313
React-RCTActionSheet:
314314
:path: "../../node_modules/react-native/Libraries/ActionSheetIOS"
315315
React-RCTAnimation:
@@ -349,7 +349,7 @@ SPEC CHECKSUMS:
349349
React-jsi: b6dc94a6a12ff98e8877287a0b7620d365201161
350350
React-jsiexecutor: 1540d1c01bb493ae3124ed83351b1b6a155db7da
351351
React-jsinspector: 512e560d0e985d0e8c479a54a4e5c147a9c83493
352-
react-native-slider: 0221b417686c5957f6e77cd9ac22c1478a165355
352+
react-native-slider: 912097f311e20780e1eec115e4c127c2bb405dcf
353353
React-RCTActionSheet: f41ea8a811aac770e0cc6e0ad6b270c644ea8b7c
354354
React-RCTAnimation: 49ab98b1c1ff4445148b72a3d61554138565bad0
355355
React-RCTBlob: a332773f0ebc413a0ce85942a55b064471587a71

example/react-native.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ if (process.argv.includes(windowsSwitch)) {
1111
} else {
1212
module.exports = {
1313
project: {
14-
android: {sourceDir: './example/android'},
15-
ios: {project: './example/ios/example.xcodeproj'},
14+
android: {sourceDir: './android'},
15+
ios: {project: './ios/example.xcodeproj'},
1616
},
1717
};
1818
}

0 commit comments

Comments
 (0)