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

Commit d25d985

Browse files
committed
Merge branch 'feature/get-app-properties' into dev
2 parents b90515b + 6da6e4d commit d25d985

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,15 @@ public void setAppProperties(Bundle appProperties){
193193
mReactRootView.setAppProperties(appProperties);
194194
}
195195

196+
/**
197+
* Helper to get props passed to the React Native Component
198+
*/
199+
public Bundle getAppProperties(){
200+
return mReactRootView.getAppProperties();
201+
}
202+
203+
204+
196205
/**
197206
* Helper to forward onKeyUp commands from our host Activity.
198207
* This allows ReactFragment to handle double tap reloads and dev menus

0 commit comments

Comments
 (0)