File tree Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 3636 }
3737 ],
3838 "dependencies" : {
39- "assert" : " ^1.3.0" ,
4039 "react-native-tabs" : " ^1.0.2"
4140 },
4241 "devDependencies" : {
Original file line number Diff line number Diff line change 66 * LICENSE file in the root directory of this source tree.
77 *
88 */
9- import assert from 'assert ' ;
9+ import { assert } from './Util ' ;
1010import Scene from './Scene' ;
1111export const JUMP_ACTION = 'jump' ;
1212export const PUSH_ACTION = 'push' ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import {
1919 REFRESH_ACTION ,
2020} from './Actions' ;
2121
22- import assert from 'assert ' ;
22+ import { assert } from './Util ' ;
2323import { getInitialState } from './State' ;
2424
2525// WARN: it is not working correct. rewrite it.
Original file line number Diff line number Diff line change 66 * LICENSE file in the root directory of this source tree.
77 *
88 */
9- import assert from 'assert ' ;
9+ import { assert } from './Util ' ;
1010
1111function getStateFromScenes ( route , scenes , props ) {
1212 const getters = [ ] ;
Original file line number Diff line number Diff line change 1+ export function assert ( expr , failDescription ) {
2+ if ( ! expr ) {
3+ throw new Error ( `[react-native-router-flux] ${ failDescription } ` ) ;
4+ }
5+ }
You can’t perform that action at this time.
0 commit comments