Skip to content

Commit cd7dea8

Browse files
feat(css-bridge) - rebase
2 parents c70ee20 + 3521e4d commit cd7dea8

File tree

201 files changed

+3962
-860
lines changed

Some content is hidden

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

201 files changed

+3962
-860
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
* @providesModule DatePickerIOS
10+
*/
11+
12+
'use strict';
13+
14+
var React = require('React');
15+
var StyleSheet = require('StyleSheet');
16+
var Text = require('Text');
17+
var View = require('View');
18+
19+
class DummyDatePickerIOS extends React.Component {
20+
render() {
21+
return (
22+
<View style={[styles.dummyDatePickerIOS, this.props.style]}>
23+
<Text style={styles.datePickerText}>DatePickerIOS is not supported on this platform!</Text>
24+
</View>
25+
);
26+
}
27+
}
28+
29+
var styles = StyleSheet.create({
30+
dummyDatePickerIOS: {
31+
height: 100,
32+
width: 300,
33+
backgroundColor: '#ffbcbc',
34+
borderWidth: 1,
35+
borderColor: 'red',
36+
alignItems: 'center',
37+
justifyContent: 'center',
38+
margin: 10,
39+
},
40+
datePickerText: {
41+
color: '#333333',
42+
margin: 20,
43+
}
44+
});
45+
46+
module.exports = DummyDatePickerIOS;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
* @providesModule DatePickerAndroid
10+
* @flow
11+
*/
12+
'use strict';
13+
14+
var warning = require('fbjs/lib/warning');
15+
16+
const DatePickerAndroid = {
17+
async open(options: Object): Promise<Object> {
18+
return Promise.reject({
19+
message: 'DatePickerAndroid is not supported on this platform.'
20+
});
21+
},
22+
};
23+
24+
module.exports = DatePickerAndroid;
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
* @providesModule IntentAndroid
10+
*/
11+
'use strict';
12+
13+
module.exports = {
14+
openURL: function(url) {
15+
console.error('IntentAndroid is not supported on Windows');
16+
},
17+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
* @providesModule NavigatorIOS
10+
*/
11+
'use strict';
12+
13+
module.exports = require('UnimplementedView');

Libraries/Components/ProgressRingWindows/ProgressRingWindows.windows.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
'use strict';
88

99
var React = require('React');
10-
var ReactPropTypes = require('ReactPropTypes');
10+
var ReactPropTypes = require('react/lib/ReactPropTypes');
1111
var ReactNativeViewAttributes = require('ReactNativeViewAttributes');
1212
var View = require('View');
1313
var requireNativeComponent = require('requireNativeComponent');
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
* @providesModule ProgressViewIOS
10+
*/
11+
12+
'use strict';
13+
14+
var React = require('React');
15+
var StyleSheet = require('StyleSheet');
16+
var Text = require('Text');
17+
var View = require('View');
18+
19+
class DummyProgressViewIOS extends React.Component {
20+
render() {
21+
return (
22+
<View style={[styles.dummy, this.props.style]}>
23+
<Text style={styles.text}>
24+
ProgressViewIOS is not supported on this platform!
25+
</Text>
26+
</View>
27+
);
28+
}
29+
}
30+
31+
var styles = StyleSheet.create({
32+
dummy: {
33+
width: 120,
34+
height: 20,
35+
backgroundColor: '#ffbcbc',
36+
borderWidth: 1,
37+
borderColor: 'red',
38+
alignItems: 'center',
39+
justifyContent: 'center',
40+
},
41+
text: {
42+
color: '#333333',
43+
margin: 5,
44+
fontSize: 10,
45+
}
46+
});
47+
48+
module.exports = DummyProgressViewIOS;
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
* @providesModule SegmentedControlIOS
10+
*/
11+
12+
'use strict';
13+
14+
var React = require('React');
15+
var StyleSheet = require('StyleSheet');
16+
var Text = require('Text');
17+
var View = require('View');
18+
19+
class DummySegmentedControlIOS extends React.Component {
20+
render() {
21+
return (
22+
<View style={[styles.dummy, this.props.style]}>
23+
<Text style={styles.text}>
24+
SegmentedControlIOS is not supported on this platform!
25+
</Text>
26+
</View>
27+
);
28+
}
29+
}
30+
31+
var styles = StyleSheet.create({
32+
dummy: {
33+
width: 120,
34+
height: 50,
35+
backgroundColor: '#ffbcbc',
36+
borderWidth: 1,
37+
borderColor: 'red',
38+
alignItems: 'center',
39+
justifyContent: 'center',
40+
},
41+
text: {
42+
color: '#333333',
43+
margin: 5,
44+
fontSize: 10,
45+
}
46+
});
47+
48+
module.exports = DummySegmentedControlIOS;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
* @providesModule SliderIOS
10+
*/
11+
12+
'use strict';
13+
14+
module.exports = require('UnimplementedView');
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
* @providesModule SwitchAndroid
10+
*/
11+
'use strict';
12+
13+
module.exports = require('UnimplementedView');
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
* @providesModule SwitchIOS
10+
*/
11+
12+
'use strict';
13+
14+
var React = require('React');
15+
var StyleSheet = require('StyleSheet');
16+
var Text = require('Text');
17+
var View = require('View');
18+
19+
class DummySwitchIOS extends React.Component {
20+
render() {
21+
return (
22+
<View style={[styles.dummySwitchIOS, this.props.style]}>
23+
<Text style={styles.text}>SwitchIOS is not supported on this platform!</Text>
24+
</View>
25+
);
26+
}
27+
}
28+
29+
var styles = StyleSheet.create({
30+
dummySwitchIOS: {
31+
width: 120,
32+
height: 50,
33+
backgroundColor: '#ffbcbc',
34+
borderWidth: 1,
35+
borderColor: 'red',
36+
alignItems: 'center',
37+
justifyContent: 'center',
38+
},
39+
text: {
40+
color: '#333333',
41+
margin: 5,
42+
fontSize: 10,
43+
}
44+
});
45+
46+
module.exports = DummySwitchIOS;
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
* @providesModule TabBarIOS
10+
*/
11+
12+
'use strict';
13+
14+
var React = require('React');
15+
var View = require('View');
16+
var StyleSheet = require('StyleSheet');
17+
18+
class DummyTabBarIOS extends React.Component {
19+
render() {
20+
return (
21+
<View style={[this.props.style, styles.tabGroup]}>
22+
{this.props.children}
23+
</View>
24+
);
25+
}
26+
}
27+
28+
var styles = StyleSheet.create({
29+
tabGroup: {
30+
flex: 1,
31+
}
32+
});
33+
34+
module.exports = DummyTabBarIOS;
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
* @providesModule TabBarItemIOS
10+
*/
11+
12+
'use strict';
13+
14+
var React = require('React');
15+
var View = require('View');
16+
var StyleSheet = require('StyleSheet');
17+
18+
class DummyTab extends React.Component {
19+
render() {
20+
if (!this.props.selected) {
21+
return <View />;
22+
}
23+
return (
24+
<View style={[this.props.style, styles.tab]}>
25+
{this.props.children}
26+
</View>
27+
);
28+
}
29+
}
30+
31+
var styles = StyleSheet.create({
32+
tab: {
33+
// TODO(5405356): Implement overflow: visible so position: absolute isn't useless
34+
// position: 'absolute',
35+
top: 0,
36+
right: 0,
37+
bottom: 0,
38+
left: 0,
39+
borderColor: 'red',
40+
borderWidth: 1,
41+
}
42+
});
43+
44+
module.exports = DummyTab;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
* @providesModule TimePickerAndroid
10+
* @flow
11+
*/
12+
'use strict';
13+
14+
var warning = require('fbjs/lib/warning');
15+
16+
const TimePickerAndroid = {
17+
async open(options: Object): Promise<Object> {
18+
return Promise.reject({
19+
message: 'TimePickerAndroid is not supported on this platform.'
20+
});
21+
},
22+
};
23+
24+
module.exports = TimePickerAndroid;

0 commit comments

Comments
 (0)