Files
notesnook/apps/mobile/share/quick-note.js

35 lines
897 B
JavaScript
Raw Normal View History

2022-01-22 09:32:12 +05:00
import React, { Component } from 'react';
import { Appearance, SafeAreaView } from 'react-native';
2022-01-25 11:10:22 +05:00
import RNBootSplash from 'react-native-bootsplash';
2022-02-28 13:48:59 +05:00
import { COLOR_SCHEME_DARK, COLOR_SCHEME_LIGHT } from '../src/utils/color-scheme';
import NotesnookShare from './index';
export default class QuickNoteIOS extends Component {
constructor(props, context) {
super(props, context);
this.state = {
2022-01-25 11:10:22 +05:00
colors: Appearance.getColorScheme() === 'dark' ? COLOR_SCHEME_DARK : COLOR_SCHEME_LIGHT,
height: 0
};
}
componentDidMount() {
2022-01-25 11:10:22 +05:00
RNBootSplash.hide({ fade: true });
}
render() {
return (
<SafeAreaView
style={{
width: '100%',
height: '100%',
justifyContent: 'flex-start',
backgroundColor: this.state.colors.nav
2022-01-25 11:10:22 +05:00
}}
>
<NotesnookShare quicknote={true} />
</SafeAreaView>
);
}
}