Better text descriptions for examples

Reviewed By: @mkonicek

Differential Revision: D2443908
This commit is contained in:
Mike Armstrong 2015-09-15 14:46:54 -07:00 коммит произвёл facebook-github-bot-8
Родитель ffe20480e4
Коммит b434ae0f3d
6 изменённых файлов: 10 добавлений и 7 удалений

Просмотреть файл

@ -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 = [
{