Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with react-native 0.60.6 #585

Merged
merged 19 commits into from
May 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Libraries/Alert/Alert.desktop-qt.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Alert {
AlertIOS.alert(title, message, buttons);
} else if (Platform.OS === 'android') {
AlertAndroid.alert(title, message, buttons, options);
} else if (Platform.OS === 'desktop') {
} else if (Platform.OS === 'desktop-qt') {
AlertDesktop.alert(title, message, buttons, options);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import type {ViewProps} from 'ViewPropTypes';
const RCTActivityIndicator =
Platform.OS === 'android'
? require('ProgressBarAndroid')
: Platform.OS === 'desktop'
: Platform.OS === 'desktop-qt'
? requireNativeComponent('RCTActivityIndicatorView', ActivityIndicator)
: requireNativeComponent('RCTActivityIndicatorView');

Expand Down
2 changes: 1 addition & 1 deletion Libraries/Components/Button.desktop-qt.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Button extends React.Component<ButtonProps> {
const buttonStyles = [styles.button];
const textStyles = [styles.text];
if (color) {
if (Platform.OS === 'ios' || Platform.OS === 'desktop') {
if (Platform.OS === 'ios' || Platform.OS === 'desktop-qt') {
textStyles.push({color: color});
} else {
buttonStyles.push({backgroundColor: color});
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Components/Picker/Picker.desktop-qt.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class Picker extends React.Component<PickerProps> {
<PickerAndroid {...this.props}>{this.props.children}</PickerAndroid>
);
}
else if (Platform.OS === 'desktop') {
else if (Platform.OS === 'desktop-qt') {
// $FlowFixMe found when converting React.createClass to ES6
return <PickerDesktop {...this.props}>{this.props.children}</PickerDesktop>;
}
Expand Down
Loading