-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
22 lines (19 loc) · 788 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import React from 'react';
import {AppRegistry, View, NativeModules} from 'react-360';
import {wrap} from './components/Wrapper/Wrapper.component';
import TooltipComponent from './components/Tooltip/Tooltip.component';
import TransitionComponent from './components/Transition/Transition.component';
export default class MainComponent extends React.Component {
render () {
NativeModules.TooltipModule.setTooltips (this.props.name);
NativeModules.TransitionModule.setTooltips (this.props.name);
return <View />;
}
}
AppRegistry.registerComponent ('TransitionComponent', () =>
wrap (TransitionComponent)
);
AppRegistry.registerComponent ('MainComponent', () => wrap (MainComponent));
AppRegistry.registerComponent ('TooltipComponent', () =>
wrap (TooltipComponent)
);