Skip to content

Commit c2b0e6c

Browse files
committed
docs(image): adding correct type spec for only ios props
1 parent 28fdd4b commit c2b0e6c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/react-native/Libraries/Image/ImageSource.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface ImageURISource {
5151
* to a URL load request, no attempt is made to load the data from the originating source,
5252
* and the load is considered to have failed.
5353
*
54-
* @platform ios
54+
* @platform ios (for `force-cache` and `only-if-cached`)
5555
*/
5656
cache?: 'default' | 'reload' | 'force-cache' | 'only-if-cached' | undefined;
5757
/**

packages/react-native/Libraries/Image/ImageSource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export interface ImageURISource {
6666
* to a URL load request, no attempt is made to load the data from the originating source,
6767
* and the load is considered to have failed.
6868
*
69-
* @platform ios
69+
* @platform ios (for `force-cache` and `only-if-cached`)
7070
*/
7171
+cache?: ?('default' | 'reload' | 'force-cache' | 'only-if-cached');
7272

packages/rn-tester/js/examples/Image/ImageExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ exports.examples = [
10921092
{
10931093
title: 'Cache Policy',
10941094
description: ('First image will be loaded and will be cached. ' +
1095-
'Second image is the same but will be reloaded if re-rendered' +
1095+
'Second image is the same but will be reloaded if re-rendered ' +
10961096
'as the cache policy is set to reload.': string),
10971097
render: function (): React.Node {
10981098
return <CacheControlAndroidExample />;

0 commit comments

Comments
 (0)