This solves: https://forums.expo.io/t/rn-expo-build-for-android-tv/9403 and https://stackoverflow.com/questions/51707841/android-tv-app-shows-white-screen
"android": {
...
"intentFilters": [
{| pt-BR: | |
| devise: | |
| confirmations: | |
| confirmed: "Sua conta foi confirmada com sucesso." | |
| send_instructions: "Você receberá um e-mail para confirmar sua conta em alguns minutos." | |
| send_paranoid_instructions: "Se o seu endereço de e-mail existir na nossa base de dados, você receberá um e-mail para confirmar sua conta em alguns minutos." | |
| failure: | |
| already_authenticated: "Você já está logado." | |
| inactive: "Sua conta ainda não foi ativada." | |
| invalid: "%{authentication_keys} ou senha inválidos." |
| import React from 'react'; | |
| import { View, Text, StyleSheet, StatusBar, TouchableOpacity, TouchableWithoutFeedback } from 'react-native'; | |
| import Svg, { Path } from 'react-native-svg'; | |
| import Constants from 'expo-constants'; | |
| import { SimpleLineIcons, Ionicons, MaterialCommunityIcons } from '@expo/vector-icons'; | |
| export default function App() { | |
| return ( | |
| <View style={styles.container}> |
This solves: https://forums.expo.io/t/rn-expo-build-for-android-tv/9403 and https://stackoverflow.com/questions/51707841/android-tv-app-shows-white-screen
"android": {
...
"intentFilters": [
{| <?php | |
| /** | |
| * Altera detalhes nos forms de checkout | |
| * | |
| * Lista de campos disponível em: | |
| * https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/ | |
| */ | |
| function my_shipping_fields($fields){ | |
| $fields['shipping']['shipping_address_2']['label_class'] = "visible"; //form de entrega |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| export ANDROID_HOME=~/Android/Sdk | |
| export PATH="$PATH:$ANDROID_HOME/tools" | |
| export PATH="$PATH:$ANDROID_HOME/platform-tools" | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="/Users/diegofernandes/.oh-my-zsh" | |
| export PATH="$PATH:/usr/local/bin" |
| title | slug | createdAt | language | preview |
|---|---|---|---|---|
React Hook prompting the user to "Add to homescreen" |
react-hook-prompting-the-user-to-add |
2018-11-29T20:35:02Z |
en |
Simple React Hook for showing the user a custom "Add to homescreen" prompt. |
| /** | |
| * Head to https://wp-oauth.com for more info on user authentication and custom login and out solutions | |
| * for WordPress | |
| */ | |
| add_action( 'rest_api_init', function () { | |
| register_rest_route( 'wpoauthserver/v1', '/logout/', array( | |
| 'methods' => 'GET', | |
| 'callback' => 'wp_oauth_server_logout' | |
| ) ); | |
| } ); |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.php$ - [L] | |
| # add a trailing slash to /wp-admin | |
| RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] | |
| RewriteCond %{REQUEST_FILENAME} -f [OR] | |
| RewriteCond %{REQUEST_FILENAME} -d | |
| RewriteRule ^ - [L] |
| (function() { | |
| 'use strict'; | |
| var cacheName = 'cache_v2.0'; | |
| var cacheFiles = [ | |
| './', | |
| './index.html', | |
| './sw.js', | |
| './manifest.json', | |
| './src/assets/js/libs/sweetalert.min.js', |
| // Ensure cart contents update when products are added to the cart via AJAX (place the following in functions.php). | |
| // Used in conjunction with https://gist.github.com/DanielSantoro/1d0dc206e242239624eb71b2636ab148 | |
| // Compatible with WooCommerce 3.0+. Thanks to Alex for assisting with an update! | |
| function woocommerce_header_add_to_cart_fragment( $fragments ) { | |
| global $woocommerce; | |
| ob_start(); | |
| ?> |