This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ./icon-generator.sh -i AppIcon.png -p android -t action -d ./android/app/src/main/res/ | |
| # ./icon-generator.sh -i AppIcon.png -p ios -t app -d ./ios/${data.name}/Images.xcassets/ | |
| usage() { | |
| echo | |
| echo Usage: icon_generator.sh -i image file -p platform -t icon type [-d directory] [-c color] [-w] [-m] | |
| echo | |
| echo " -i The original image file." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { memo } from 'react' | |
| import PropTypes from 'prop-types' | |
| import { useApp } from '../hooks/use-app' | |
| import { useMeta } from '../hooks/use-meta' | |
| import SEO from '../components/atoms/SEO' | |
| import styles from './index.module.css' | |
| import { ReactComponent as DownloadBadge } from '../images/DownloadBadgeDark.svg' | |
| Home.propTypes = { | |
| pageContext: PropTypes.object.isRequired |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.rn61bp"> | |
| <uses-permission android:name="android.permission.INTERNET" /> | |
| <application | |
| android:name=".MainApplication" | |
| android:label="@string/app_name" | |
| android:icon="@mipmap/ic_launcher" | |
| android:roundIcon="@mipmap/ic_launcher" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react'; | |
| import { | |
| AppRegistry, | |
| StyleSheet, | |
| Text, | |
| View, | |
| ScrollView, | |
| Animated, | |
| Image, | |
| Dimensions, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { | |
| View, | |
| Text, | |
| TouchableOpacity, | |
| Alert, | |
| Platform, | |
| StyleSheet, | |
| } from 'react-native'; | |
| import MapView, {Marker} from 'react-native-maps'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default { | |
| map: { | |
| zIndex: 0, | |
| flex: 1, | |
| position: 'absolute', | |
| top: 0, | |
| left: 0, | |
| right: 0, | |
| bottom: 0, | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const shell = require('shelljs'); | |
| require('shelljs/global'); | |
| const path = require('path'); | |
| const fs = require('fs'); | |
| const fsP = require('fs-path'); | |
| const helpers = require('../helpers'); | |
| const templates = require('../templates'); | |
| const api = require('../helpers/api'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useEffect, useState, useCallback } from 'react'; | |
| import { useSelector, useDispatch } from 'react-redux'; | |
| import { Table, Input, Button, Form, Modal, Popconfirm, Select } from 'antd'; | |
| import { setLocalizationState, getLocalizationState } from '../../actions'; | |
| import { getLanguageName } from '../../../../utils/languageHelpers'; | |
| import styles from '../../styles.scss'; | |
| const EditableContext = React.createContext(); | |
| const EditableRow = ({ form, index, ...props }) => ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Appearance, useColorScheme} from 'react-native-appearance'; | |
| import {useCallback, useEffect, useState} from 'react'; | |
| export default function useThemeState() { | |
| const [themeState, setThemeState] = useState(null); | |
| useEffect(() => { | |
| const subscription = Appearance.addChangeListener(({colorScheme}) => { | |
| setThemeState(colorScheme); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Platform } from 'react-native'; | |
| import { Appearance, useColorScheme } from 'react-native-appearance'; | |
| import { useCallback, useEffect, useState } from 'react'; | |
| export default function useThemeState(set) { | |
| const [themeState, setThemeState] = useState(null); | |
| useEffect(() => { | |
| if (Platform.OS === 'web') { | |
| setThemeState(colorScheme); |