Skip to content

Commit 24c1f35

Browse files
authored
Fix source deprecation (#1329)
1 parent c916b4d commit 24c1f35

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

demo/src/screens/componentScreens/EmptyStateScreen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ export default class EmptyStateScreen extends Component {
3636
title='Oppsie (with local image)'
3737
subtitle='Nothing to see here..'
3838
ctaLabel='OK'
39-
source={localImageSource}
39+
imageSource={localImageSource}
4040
/>
4141
</View>
4242
<View style={styles.pageView}>
4343
<StateScreen
4444
title='Oppsie (with remote image)'
4545
subtitle='Nothing to see here..'
4646
ctaLabel='OK'
47-
source={remoteImageSource}
47+
imageSource={remoteImageSource}
4848
/>
4949
</View>
5050
</ScrollView>

src/components/stateScreen/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default class StateScreen extends BaseComponent {
5353
LogService.deprecationWarn({component: 'StateScreen', oldProp: 'testId', newProp: 'testID'});
5454

5555
}
56-
if (props.imageSource) {
56+
if (props.source) {
5757
LogService.deprecationWarn({component: 'StateScreen', oldProp: 'source', newProp: 'imageSource'});
5858
}
5959
}
@@ -67,7 +67,7 @@ export default class StateScreen extends BaseComponent {
6767
}
6868

6969
render() {
70-
// TODO: remove testId and imageSource after deprecation
70+
// TODO: remove testId and source after deprecation
7171
const {title, subtitle, source, imageSource, ctaLabel, onCtaPress, testId, testID} = this.props;
7272
const finalSource = imageSource || source;
7373

0 commit comments

Comments
 (0)