我正在尝试按照此说明将我的 react 本机应用程序与 smooch.io 集成。我已成功安装模块并配置 MainApplication.java。现在我在尝试显示对话屏幕时遇到问题。我应该把Smooch.show()
我的反应原生应用程序放在哪里?这是我的 index.android.js
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View
} from 'react-native';
import Smooch from 'react-native-smooch';
export default class SmoochTest extends Component {
componentDidMount() {
Smooch.show();
}
render() {
return (
<View style={styles.container}>
</View>
);
}
}
const styles = StyleSheet.create({
// some style
});
AppRegistry.registerComponent('SmoochTest', () => SmoochTest);