http://twitter.com/share?text=<TITLE>&url=<URL>
E.g. http://twitter.com/share?text=This+is+google+a+search+engine&url=https%3A%2F%2Fwww.google.com
http://www.facebook.com/sharer.php?u=&p[title]=
In Terminal
mkdir ~/.bash
Copy the raw git-prompt.sh
file from git contrib in to the ~/.bash
directory: https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh
Inside ~/.bashrc
or ~/.bash_profile
(choose the file where you normally put any bash customizations/setup), add the lines:
import 'dart:async'; | |
import 'package:auth_flow/app/utils/auth_utils.dart'; | |
import 'package:auth_flow/app/utils/network_utils.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
class HomePage extends StatefulWidget { | |
static final String routeName = 'home'; | |
@override |
// file: ./BackgroundTimer.js | |
import { DeviceEventEmitter, NativeAppEventEmitter, Platform } from 'react-native'; | |
import _BackgroundTimer from 'react-native-background-timer'; // v2.1.1 | |
const EventEmitter = Platform.select({ | |
ios: () => NativeAppEventEmitter, | |
android: () => DeviceEventEmitter, | |
})(); | |
class BackgroundTimer { |
/** | |
* add console.js at ther root of your app | |
* Modify to make it more helpful for your project | |
* > Note: `esm` adds ES6 support in Node | |
* In package.json | |
* ... | |
* "scripts": { | |
* "start": "nodemon -r esm ./server.js" | |
* "console": "node -r esm --experimental-repl-await console", | |
* } |
{ | |
"compilerOptions": { | |
/* Basic Options */ | |
"target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */, | |
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, | |
"lib": [ | |
"esnext", | |
"dom" | |
] /* Specify library files to be included in the compilation. */, | |
// "allowJs": true, /* Allow javascript files to be compiled. */ |
/** | |
* Copyright (c) Facebook, Inc. and its affiliates. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*/ | |
#import "AppDelegate.h" | |
#import <React/RCTBridge.h> | |
#import <React/RCTBundleURLProvider.h> | |
#import <React/RCTRootView.h> |
import {AppRegistry} from 'react-native' | |
import {name as appName} from './app.json' | |
import App from './App' | |
AppRegistry.registerComponent(appName, () => App) | |
AppRegistry.runApplication(appName, { | |
initialProps: {}, | |
rootTag: document.getElementById('app-root'), | |
}) |
const path = require('path'); | |
const webpack = require('webpack'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const rootDir = path.join(__dirname, '..'); | |
const webpackEnv = process.env.NODE_ENV || 'development'; | |
module.exports = { | |
mode: webpackEnv, | |
entry: { | |
app: path.join(rootDir, './index.web.ts'), |
import React from 'react'; | |
import {Dimensions, StyleSheet, Text, View} from 'react-native'; | |
const {height} = Dimensions.get('screen'); | |
const App = () => { | |
return ( | |
<View style={styles.container}> | |
<View style={styles.center}> | |
<Text>Hello React Native Web!!!</Text> |