#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import <React/RCTLinkingManager.h>
+#import <ReactNativeNavigation/ReactNativeNavigation.h>
#import <UMCore/UMModuleRegistry.h>
#import <UMReactNativeAdapter/UMNativeModulesProxy.h>
- (RCTBridge *)initializeReactNativeApp
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"> | |
<link href="./styles.css" rel="stylesheet"> | |
<title>Hello World!</title> | |
</head> | |
<body> |
This file contains 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
// Reference: https://github.com/facebook/create-react-app/blob/main/packages/react-dev-utils/openBrowser.js | |
import { execSync } from "child_process"; | |
import open from "open"; | |
import defaultBrowserId from "default-browser-id"; | |
import path from "path"; | |
async function startBrowserProcess(url: string) { | |
const shouldTryOpenChromiumWithAppleScript = process.platform === "darwin"; | |
if (shouldTryOpenChromiumWithAppleScript) { |
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
This file contains 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 _ from 'lodash' | |
export default class App extends Component { | |
onChange(event) { | |
console.log(event.target.value) | |
} | |
render() { | |
return ( | |
<div> |
This file contains 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
function greet() { | |
console.log('hello') | |
} | |
var debouncedFunction = _.debounce(greet, 500) | |
window.addEventListener('scroll', debouncedFunction) |
react-redux-starter-kit
Contributing Guidelines- Contributing to a Project
- How to Write a Git Commit Message
- Writing good commit messages
- Atom Contributing Guidelines
-
- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
This file contains 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
Show hidden characters
{ | |
"auto_complete_commit_on_tab": true, | |
"auto_indent": true, | |
"bold_folder_labels": true, | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/Oceanic Color Scheme/Themes/Oceanic - Eighties.tmTheme", | |
"default_line_ending": "unix", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, |
- Follow the steps given here to install Node.js and NPM.
- Verify whether NPM is installed by typing
npm -v
in a terminal window.
npm install -g react-native-cli
- Download and install Android Studio as explained here.
- Run Android Studio and open the SDK Manager. Under the SDK Platforms tab, check Show Package Details, expand Android 6.0 (Marshmallow) and check the following: