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. |
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
/** | |
* 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' | |
) ); | |
} ); |
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
# 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" |
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
<?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 |
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": [
{
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, 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}> |
OlderNewer