@@ -93,31 +93,20 @@ class App extends React.Component<any, MyState> {
9393 params : params ,
9494 } ) ;
9595 }
96-
97- this . registerView ( ) ;
98-
99- // let first = branch.getFirstReferringParams();
100- // let latest = branch.getLatestReferringParams();
101-
102- // console.log('branch first params ' + JSON.stringify(first));
103- // console.log('branch latest params ' + JSON.stringify(latest));
10496 } ,
10597 } ) ;
10698 }
10799
108100 componentWillUnmount ( ) {
109101 console . log ( 'componentWillUnmount' ) ;
110- console . log (
111- 'branch this._unsubscribeFromBranch ' + this . _unsubscribeFromBranch ,
112- ) ;
113102 if ( this . _unsubscribeFromBranch ) {
114- console . log ( 'branch unsubscribe' ) ;
103+ console . log ( 'Branch unsubscribe' ) ;
115104 this . _unsubscribeFromBranch ( ) ;
116105 this . _unsubscribeFromBranch = null ;
117106 }
118107
119108 if ( this . buo ) {
120- console . log ( 'branch buo release' ) ;
109+ console . log ( 'Branch buo release' ) ;
121110 this . buo . release ( ) ;
122111 this . buo = null ;
123112 }
@@ -160,15 +149,14 @@ class App extends React.Component<any, MyState> {
160149 }
161150
162151 editingEnded ( ) {
163- console . log ( 'text is ' + this . state . text ) ;
164152 branch . openURL ( this . state . text ) ;
165153 }
166154
167155 _onNavigationStateChange ( webViewState : any ) {
168156 console . log (
169157 'navigated to url ' + webViewState . url + ' title ' + webViewState . title ,
170158 ) ;
171- // this.setState({url: webViewState.url, title: webViewState.title});
159+ this . setState ( { url : webViewState . url , title : webViewState . title } ) ;
172160 }
173161
174162 async registerView ( ) {
0 commit comments