Skip to content

Commit

Permalink
fix(RN): 修复页面 navigation 配置失效的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Pines-Cheng committed Sep 21, 2018
1 parent 57bab10 commit 132a6a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/taro-router-rn/src/getWrappedScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ function getWrappedScreen (Screen, Taro, globalNavigationOptions) {
this.screenRef = React.createRef()
}

static navigationOptions = Screen.navigationOptions || {}

/**
* @description 如果 Screen 被包裹过(如:@connect),
* 需提供获取包裹前 Screen 实例的方法 getWrappedInstance 并暴露出被包裹组件的 navigationOptions
Expand Down

0 comments on commit 132a6a2

Please sign in to comment.