Skip to content

Commit 2c66d00

Browse files
committed
feat: add package import and instance initialization for CodePush in react-native.config.js
1 parent 628b09b commit 2c66d00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

react-native.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ module.exports = {
33
platforms: {
44
android: {
55
sourceDir: './android/app',
6+
packageImportPath: 'import com.microsoft.codepush.react.CodePush;',
7+
packageInstance: 'new CodePush(getResources().getString(R.string.CodePushDeploymentKey), getApplicationContext(), BuildConfig.DEBUG)',
68
}
79
}
810
}

0 commit comments

Comments
 (0)