|
@@ -1,4 +1,3 @@
|
1
|
|
-import * as React from 'react';
|
2
|
1
|
import { AppRegistry, ComponentProvider } from 'react-native';
|
3
|
2
|
import { ComponentWrapper } from './ComponentWrapper';
|
4
|
3
|
|
|
@@ -9,11 +8,10 @@ export class ComponentRegistry {
|
9
|
8
|
this.store = store;
|
10
|
9
|
}
|
11
|
10
|
|
12
|
|
- registerComponent(componentName: string, getComponentClassFunc: ComponentProvider): React.ComponentType<any> {
|
|
11
|
+ registerComponent(componentName: string, getComponentClassFunc: ComponentProvider): void {
|
13
|
12
|
const OriginalComponentClass = getComponentClassFunc();
|
14
|
13
|
const NavigationComponent = ComponentWrapper.wrap(componentName, OriginalComponentClass, this.store);
|
15
|
14
|
this.store.setOriginalComponentClassForName(componentName, OriginalComponentClass);
|
16
|
15
|
AppRegistry.registerComponent(componentName, () => NavigationComponent);
|
17
|
|
- return NavigationComponent;
|
18
|
16
|
}
|
19
|
17
|
}
|