mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
Random changes in the website
This commit is contained in:
parent
c656cd9f24
commit
e2e123c2ab
@ -34,9 +34,16 @@ var ComponentDoc = React.createClass({
|
||||
}
|
||||
|
||||
if (type.name === 'custom') {
|
||||
if (type.raw === 'EdgeInsetsPropType') {
|
||||
return '{top: number, left: number, bottom: number, right: number}';
|
||||
}
|
||||
return type.raw;
|
||||
}
|
||||
|
||||
if (type.name === 'func') {
|
||||
return 'function';
|
||||
}
|
||||
|
||||
return type.name;
|
||||
},
|
||||
|
||||
@ -135,9 +142,9 @@ var APIDoc = React.createClass({
|
||||
{method.modifiers.length && <span className="propType">
|
||||
{method.modifiers.join(' ') + ' '}
|
||||
</span>}
|
||||
{method.name}(
|
||||
{method.name}
|
||||
<span className="propType">
|
||||
{method.params
|
||||
({method.params
|
||||
.map((param) => {
|
||||
var res = param.name;
|
||||
if (param.typehint) {
|
||||
@ -145,9 +152,8 @@ var APIDoc = React.createClass({
|
||||
}
|
||||
return res;
|
||||
})
|
||||
.join(', ')}
|
||||
.join(', ')})
|
||||
</span>
|
||||
)
|
||||
</Header>
|
||||
{method.docblock && <Marked>
|
||||
{this.removeCommentsFromDocblock(method.docblock)}
|
||||
|
@ -38,14 +38,13 @@ function componentsToMarkdown(type, json, filepath, i) {
|
||||
var components = [
|
||||
'../Libraries/Components/ActivityIndicatorIOS/ActivityIndicatorIOS.ios.js',
|
||||
'../Libraries/Components/DatePicker/DatePickerIOS.ios.js',
|
||||
'../Libraries/Text/ExpandingText.js',
|
||||
'../Libraries/Image/Image.ios.js',
|
||||
'../Libraries/Components/ListView/ListView.js',
|
||||
'../Libraries/Components/MapView/MapView.js',
|
||||
'../Libraries/Components/Navigation/NavigatorIOS.ios.js',
|
||||
'../Libraries/Picker/PickerIOS.ios.js',
|
||||
'../Libraries/Components/ScrollView/ScrollView.js',
|
||||
'../Libraries/Components/Slider/Slider.js',
|
||||
'../Libraries/Components/SliderIOS/SliderIOS.js',
|
||||
'../Libraries/Components/SwitchIOS/SwitchIOS.ios.js',
|
||||
'../Libraries/Components/TabBarIOS/TabBarIOS.ios.js',
|
||||
'../Libraries/Text/Text.js',
|
||||
|
@ -906,6 +906,7 @@ div[data-twttr-id] iframe {
|
||||
|
||||
.propTitle {
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.prop {
|
||||
|
Loading…
x
Reference in New Issue
Block a user