Skip to content

Instantly share code, notes, and snippets.

‎‎​
@giangdhwhtbr
giangdhwhtbr / create_react_component.sh
Last active June 5, 2023 02:48
Create React Component
#!/bin/bash
# Prompt user for the component name
echo "Enter the name of the React component in:"
read component_name
capitalized_name=$(perl -pe 's/^./\U$&/' <<< $component_name)
echo "Enter the dest path of the component $component_name"
read component_path
@giangdhwhtbr
giangdhwhtbr / react-native-offline-bundling-android
Created June 19, 2020 02:51 — forked from erikyuntantyo/react-native-offline-bundling-android
Build react-native offline bundling into android
# create assets folder in the current project
$ mkdir android/app/src/main/assets
# create bundle script
$ react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
# execute command to run android to create debug apk
$ react-native run-android
# Or change to android folder
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html