Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Text as RNText,
StyleSheet,
TouchableHighlight,
TouchableOpacity,
TouchableWithoutFeedback,
Platform,
TouchableWithoutFeedbackProps,
ViewProps,
TouchableOpacityProps,
} from "react-native";
import Colors from "../constants/Colors";
const { Lottie } = require("expo").DangerZone;
const { createIconSetFromIcoMoon } = require("@expo/vector-icons");
const icoMoonConfig = require("../assets/fonts/config.json");
export const Icon = createIconSetFromIcoMoon(icoMoonConfig);
const margin = 20;
const styles = StyleSheet.create({
image: {
resizeMode: "contain",
},
button: {
borderRadius: 15,
overflow: "hidden",
},
pen: {
marginRight: margin,
},
toolsBar: {
flexDirection: "row",
justifyContent: "space-around",
},
import React from 'react';
import * as Font from 'expo-font';
import { createIconSetFromIcoMoon } from '@expo/vector-icons';
import { Icon } from 'galio-framework';
import argonConfig from '../assets/font/argon.json';
const ArgonExtra = require('../assets/font/argon.ttf');
const IconArgonExtra = createIconSetFromIcoMoon(argonConfig, 'ArgonExtra');
class IconExtra extends React.Component {
state = {
fontLoaded: false,
}
async componentDidMount() {
await Font.loadAsync({ ArgonExtra: ArgonExtra });
this.setState({ fontLoaded: true });
}
render() {
const { name, family, ...rest } = this.props;
if (name && family && this.state.fontLoaded) {
if (family === 'ArgonExtra') {
import React from 'react';
import * as Font from 'expo-font';
import { createIconSetFromIcoMoon } from '@expo/vector-icons';
import { Icon } from 'galio-framework';
import GalioConfig from '../assets/fonts/galioExtra';
const GalioExtra = require('../assets/fonts/galioExtra.ttf');
const IconGalioExtra = createIconSetFromIcoMoon(GalioConfig, 'GalioExtra');
export default class IconExtra extends React.Component {
state = {
fontLoaded: false,
}
async componentDidMount() {
await Font.loadAsync({ GalioExtra: GalioExtra });
this.setState({ fontLoaded: true });
}
render() {
const { name, family, ...rest } = this.props;
if (name && family && this.state.fontLoaded) {
if (family === 'GalioExtra') {