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

Commit b90515b

Browse files
authored
Merge pull request #1 from bdwain/master
Expose setAppProperties on reactRootView
2 parents 769e02e + 8035c6a commit b90515b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

android/src/main/java/com/hudl/oss/react/fragment/ReactFragment.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,13 @@ public void onBackPressed() {
185185
getReactNativeHost().getReactInstanceManager().onBackPressed();
186186
}
187187
}
188+
189+
/**
190+
* Helper to update props passed to the React Native Component rendered by the fragment
191+
*/
192+
public void setAppProperties(Bundle appProperties){
193+
mReactRootView.setAppProperties(appProperties);
194+
}
188195

189196
/**
190197
* Helper to forward onKeyUp commands from our host Activity.

0 commit comments

Comments
 (0)