Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import {
Menu,
MenuOptions,
MenuOption,
MenuTrigger,
MenuContext,
MenuProvider,
renderers
} from 'react-native-popup-menu';
const { SlideInMenu } = renderers;
const IS_IOS = Platform.OS === 'ios';
const { width, height } = Dimensions.get('window');
const defaultStyles = getDefaultStyles();
class App extends Component {
constructor(props) {
super(props);
this.customStyles = {...defaultStyles, body: {fontSize: 12}, heading : {fontSize: 16}
, title : {fontSize: 20}, ol : {fontSize: 12 }, ul: {fontSize: 12}, bold: {fontSize: 12, fontWeight: 'bold', color: ''}
};
this.state = {
selectedTag : 'body',
selectedColor : 'default',
selectedHighlight: 'default',
colors : ['red', 'green', 'blue'],
highlights:['yellow_hl','pink_hl', 'orange_hl', 'green_hl','purple_hl','blue_hl'],
selectedStyles : [],
// value: [getInitialObject()] get empty editor