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:
Родитель
5618c3ff09
Коммит
70ac81f0b5
|
@ -54,7 +54,7 @@ var PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};
|
||||||
* <TouchableHighlight onPress={this._onPressButton}>
|
* <TouchableHighlight onPress={this._onPressButton}>
|
||||||
* <Image
|
* <Image
|
||||||
* style={styles.button}
|
* style={styles.button}
|
||||||
* source={require('image!myButton')}
|
* source={require('./myButton.png')}
|
||||||
* />
|
* />
|
||||||
* </TouchableHighlight>
|
* </TouchableHighlight>
|
||||||
* );
|
* );
|
||||||
|
|
|
@ -41,7 +41,7 @@ var PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};
|
||||||
* <TouchableOpacity onPress={this._onPressButton}>
|
* <TouchableOpacity onPress={this._onPressButton}>
|
||||||
* <Image
|
* <Image
|
||||||
* style={styles.button}
|
* style={styles.button}
|
||||||
* source={require('image!myButton')}
|
* source={require('./myButton.png')}
|
||||||
* />
|
* />
|
||||||
* </TouchableOpacity>
|
* </TouchableOpacity>
|
||||||
* );
|
* );
|
||||||
|
|
Загрузка…
Ссылка в новой задаче