Update Touchable docs with new image require syntax

Summary:
Just noticed the old syntax was used in the docs.
Closes https://github.com/facebook/react-native/pull/8765

Differential Revision: D3560355

Pulled By: mkonicek

fbshipit-source-id: 13db21a498be205a32921a89058167dd47e1bbdf
This commit is contained in:
Martin Konicek 2016-07-13 23:11:28 -07:00 коммит произвёл Facebook Github Bot 8
Родитель 5618c3ff09
Коммит 70ac81f0b5
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -54,7 +54,7 @@ var PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};
* <TouchableHighlight onPress={this._onPressButton}>
* <Image
* style={styles.button}
* source={require('image!myButton')}
* source={require('./myButton.png')}
* />
* </TouchableHighlight>
* );

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

@ -41,7 +41,7 @@ var PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};
* <TouchableOpacity onPress={this._onPressButton}>
* <Image
* style={styles.button}
* source={require('image!myButton')}
* source={require('./myButton.png')}
* />
* </TouchableOpacity>
* );