Skip to content

Instantly share code, notes, and snippets.

View lomocc's full-sized avatar

vincent lomocc

  • Chengdu
View GitHub Profile
import { PropTypes } from 'prop-types';
import React, { Component } from 'react';
import { Animated, Dimensions, Keyboard, StyleSheet, TextInput, UIManager } from 'react-native';
const { State: TextInputState } = TextInput;
export default class KeyboardShift extends Component {
state = {
shift: new Animated.Value(0),
};
@thoop
thoop / nginx.conf
Last active November 12, 2024 19:08
Official prerender.io nginx.conf for nginx
# Change YOUR_TOKEN to your prerender token
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;