Better text descriptions for examples
Reviewed By: @mkonicek Differential Revision: D2443908
This commit is contained in:
Родитель
ffe20480e4
Коммит
b434ae0f3d
|
@ -94,7 +94,7 @@ var styles = StyleSheet.create({
|
|||
});
|
||||
|
||||
exports.title = 'Border';
|
||||
exports.description = 'View borders';
|
||||
exports.description = 'Demonstrates some of the border styles available to Views.';
|
||||
exports.examples = [
|
||||
{
|
||||
title: 'Equal-Width / Same-Color',
|
||||
|
|
|
@ -141,7 +141,8 @@ var styles = StyleSheet.create({
|
|||
});
|
||||
|
||||
exports.title = 'Layout Events';
|
||||
exports.description = 'Layout events can be used to measure view size and position.';
|
||||
exports.description = 'Examples that show how Layout events can be used to ' +
|
||||
'measure view size and position.';
|
||||
exports.examples = [
|
||||
{
|
||||
title: 'LayoutEventExample',
|
||||
|
|
|
@ -31,7 +31,7 @@ var PanResponderExample = React.createClass({
|
|||
|
||||
statics: {
|
||||
title: 'PanResponder Sample',
|
||||
description: 'Basic gesture handling example',
|
||||
description: 'Shows the use of PanResponder to provide basic gesture handling.',
|
||||
},
|
||||
|
||||
_panResponder: {},
|
||||
|
|
|
@ -250,6 +250,6 @@ var styles = StyleSheet.create({
|
|||
|
||||
exports.framework = 'React';
|
||||
exports.title = 'Pointer Events';
|
||||
exports.description = '`pointerEvents` is a prop of View that gives control ' +
|
||||
'of how touches should be handled.';
|
||||
exports.description = 'Demonstrates the use of the pointerEvents prop of a ' +
|
||||
'View to control how touches should be handled.';
|
||||
exports.examples = exampleClasses.map(infoToExample);
|
||||
|
|
|
@ -27,7 +27,7 @@ var {
|
|||
} = React;
|
||||
|
||||
exports.displayName = (undefined: ?string);
|
||||
exports.description = 'Touchable and onPress examples';
|
||||
exports.description = 'Touchable and onPress examples.';
|
||||
exports.title = '<Touchable*> and onPress';
|
||||
exports.examples = [
|
||||
{
|
||||
|
|
|
@ -85,7 +85,9 @@ var ViewBorderStyleExample = React.createClass({
|
|||
});
|
||||
|
||||
exports.title = '<View>';
|
||||
exports.description = 'Basic building block of all UI.';
|
||||
exports.description = 'Basic building block of all UI, examples that ' +
|
||||
'demonstrate some of the many styles available.';
|
||||
|
||||
exports.displayName = 'ViewExample';
|
||||
exports.examples = [
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче