Merge pull request #40 from react-native-community/feature/turn-off-ci-e2e-and-example-fix
Feature/turn off ci e2e and example fix
This commit is contained in:
commit
eb538ab3ba
|
@ -43,29 +43,29 @@ workflows:
|
||||||
- analyze:
|
- analyze:
|
||||||
requires:
|
requires:
|
||||||
- checkout_code
|
- checkout_code
|
||||||
- rn/android_build:
|
# - rn/android_build:
|
||||||
name: android_debug_build
|
# name: android_debug_build
|
||||||
project_path: "example/android"
|
# project_path: "example/android"
|
||||||
build_type: debug
|
# build_type: debug
|
||||||
requires:
|
# requires:
|
||||||
- analyze
|
# - analyze
|
||||||
- rn/android_build:
|
# - rn/android_build:
|
||||||
name: android_release_build
|
# name: android_release_build
|
||||||
project_path: "example/android"
|
# project_path: "example/android"
|
||||||
build_type: release
|
# build_type: release
|
||||||
requires:
|
# requires:
|
||||||
- analyze
|
# - analyze
|
||||||
- rn/android_test:
|
# - rn/android_test:
|
||||||
logcat_grep: "com.camerarollexample"
|
# logcat_grep: "com.camerarollexample"
|
||||||
detox_configuration: "android.emu.release"
|
# detox_configuration: "android.emu.release"
|
||||||
requires:
|
# requires:
|
||||||
- android_release_build
|
# - android_release_build
|
||||||
- rn/ios_build_and_test:
|
# - rn/ios_build_and_test:
|
||||||
project_path: "example/ios/CameraRollExample.xcodeproj"
|
# project_path: "example/ios/CameraRollExample.xcodeproj"
|
||||||
derived_data_path: "example/ios/build"
|
# derived_data_path: "example/ios/build"
|
||||||
device: "iPhone X"
|
# device: "iPhone X"
|
||||||
build_configuration: "Release"
|
# build_configuration: "Release"
|
||||||
scheme: "CameraRollExample"
|
# scheme: "CameraRollExample"
|
||||||
detox_configuration: "ios.sim.release"
|
# detox_configuration: "ios.sim.release"
|
||||||
requires:
|
# requires:
|
||||||
- analyze
|
# - analyze
|
||||||
|
|
|
@ -19,6 +19,7 @@ const {
|
||||||
Text,
|
Text,
|
||||||
View,
|
View,
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
|
Dimensions,
|
||||||
} = ReactNative;
|
} = ReactNative;
|
||||||
import CameraRoll from '../../js/CameraRoll';
|
import CameraRoll from '../../js/CameraRoll';
|
||||||
import type {PhotoIdentifier, GroupTypes} from '../../js/CameraRoll';
|
import type {PhotoIdentifier, GroupTypes} from '../../js/CameraRoll';
|
||||||
|
@ -57,6 +58,7 @@ export default class CameraRollExample extends React.Component<Props, State> {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
|
<View style={styles.header}>
|
||||||
<Switch
|
<Switch
|
||||||
onValueChange={this._onSwitchChange}
|
onValueChange={this._onSwitchChange}
|
||||||
value={this.state.bigImages}
|
value={this.state.bigImages}
|
||||||
|
@ -67,6 +69,7 @@ export default class CameraRollExample extends React.Component<Props, State> {
|
||||||
onValueChange={this._onSliderChange}
|
onValueChange={this._onSliderChange}
|
||||||
/>
|
/>
|
||||||
<Text>{'Group Type: ' + this.state.groupTypes}</Text>
|
<Text>{'Group Type: ' + this.state.groupTypes}</Text>
|
||||||
|
</View>
|
||||||
<CameraRollView
|
<CameraRollView
|
||||||
ref={ref => {
|
ref={ref => {
|
||||||
this._cameraRollView = ref;
|
this._cameraRollView = ref;
|
||||||
|
@ -131,6 +134,11 @@ export default class CameraRollExample extends React.Component<Props, State> {
|
||||||
}
|
}
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
|
header: {
|
||||||
|
marginTop: 44,
|
||||||
|
padding: 20,
|
||||||
|
width: Dimensions.get('window').width,
|
||||||
|
},
|
||||||
row: {
|
row: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
flex: 1,
|
flex: 1,
|
||||||
|
|
Loading…
Reference in New Issue