Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

Commit 4d408c7

Browse files
committed
fix: update ResponsiveComponent to use newer lifecycle
1 parent 29a7ae0 commit 4d408c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResponsiveComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default abstract class ResponsiveComponent extends Component<
1616
window: Dimensions.get("window"),
1717
};
1818

19-
componentWillMount() {
19+
componentDidMount() {
2020
Dimensions.addEventListener("change", this.onDimensionChange);
2121
}
2222

0 commit comments

Comments
 (0)