Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 0d4baf7

Browse files
check RootComponent.prototype for null
1 parent 2cb416e commit 0d4baf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodePush.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ function codePushify(options = {}) {
576576

577577
// We can set ref property on class components only (not stateless)
578578
// Check it by render method
579-
if (RootComponent.prototype.render) {
579+
if (RootComponent.prototype && RootComponent.prototype.render) {
580580
props.ref = this.rootComponentRef;
581581
}
582582

0 commit comments

Comments
 (0)