Skip to content

Commit d5ce1a1

Browse files
committed
fix(example): Ensure that iOS always get new image
1 parent db21731 commit d5ce1a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default class SquareImageCropper extends React.Component<
6565
async _fetchRandomPhoto() {
6666
this.setState({
6767
randomPhoto: {
68-
uri: `http://placeimg.com/${DEFAULT_IMAGE_WIDTH}/${DEFAULT_IMAGE_HEIGHT}/tech`,
68+
uri: `http://placeimg.com/${DEFAULT_IMAGE_WIDTH}/${DEFAULT_IMAGE_HEIGHT}/tech?${new Date().getTime()}`,
6969
height: DEFAULT_IMAGE_HEIGHT,
7070
width: DEFAULT_IMAGE_WIDTH,
7171
},

0 commit comments

Comments
 (0)