This package is meant for usage within the kiwicom native app.
Installation
yarn add @kiwicom/account-native
Usage
import { Settings, AppProvider, LayoutProvider } from '@kiwicom/account-native';
type Props = {|
+onBackClicked: () => void,
+onDeleteAccount: () => void,
+token: string,
+locale: string,
+localeDashed: string,
|};
class Accounts extends React.Component<Props> {
render() {
return (
<AppProvider {...this.props}>
<LayoutProvider>
<Settings />
<LayoutProvider>
</AppProvider>
);
}
}
Please also add the environment variable SENTRY_ACCOUNT_DSN