Skip to content

Commit

Permalink
docs(image): adding correct type spec for only ios props
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoguzmana committed Oct 23, 2024
1 parent 28fdd4b commit c2b0e6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-native/Libraries/Image/ImageSource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface ImageURISource {
* to a URL load request, no attempt is made to load the data from the originating source,
* and the load is considered to have failed.
*
* @platform ios
* @platform ios (for `force-cache` and `only-if-cached`)
*/
cache?: 'default' | 'reload' | 'force-cache' | 'only-if-cached' | undefined;
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/Libraries/Image/ImageSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export interface ImageURISource {
* to a URL load request, no attempt is made to load the data from the originating source,
* and the load is considered to have failed.
*
* @platform ios
* @platform ios (for `force-cache` and `only-if-cached`)
*/
+cache?: ?('default' | 'reload' | 'force-cache' | 'only-if-cached');

Expand Down
2 changes: 1 addition & 1 deletion packages/rn-tester/js/examples/Image/ImageExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ exports.examples = [
{
title: 'Cache Policy',
description: ('First image will be loaded and will be cached. ' +
'Second image is the same but will be reloaded if re-rendered' +
'Second image is the same but will be reloaded if re-rendered ' +
'as the cache policy is set to reload.': string),
render: function (): React.Node {
return <CacheControlAndroidExample />;
Expand Down

0 comments on commit c2b0e6c

Please sign in to comment.