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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
{ | |
"name": "@monorepo-example/mobileapp", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"android": "react-native run-android", | |
"ios": "react-native run-ios", | |
"start": "react-native start", | |
"lint": "eslint ." | |
}, |
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
plugins: [ | |
[ | |
'module-resolver', | |
{ | |
alias: { | |
react: require.resolve('react', { | |
paths: [path.join(__dirname, './')], | |
}), | |
'^react-native$': require.resolve(`react-native`, { | |
paths: [path.join(__dirname, './')], |
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
const path = require('path'); | |
const reactNativePath = require.resolve('react-native'); | |
const reactNativeFolder = `${ | |
reactNativePath.split('node_modules/react-native/')[0] | |
}node_modules/react-native/`; | |
const getConfig = async () => ({ | |
watchFolders: [path.resolve(__dirname, '../../')], | |
transformer: { |
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
const path = require('path'); | |
const reactNativePath = require.resolve('react-native'); | |
const reactNativeFolder = `${ | |
reactNativePath.split('node_modules/react-native/')[0] | |
}node_modules/react-native/`; | |
const getConfig = async () => ({ | |
watchFolders: [path.resolve(__dirname, '../../')], | |
transformer: { |
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
const path = require('path'); | |
module.exports = { | |
watchFolders: [path.resolve(__dirname, '../../')], | |
transformer: { | |
getTransformOptions: async () => ({ | |
transform: { | |
experimentalImportSupport: false, | |
inlineRequires: false, | |
}, |
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
export NODE_BINARY=node | |
export PROJECT_ROOT="$PROJECT_DIR/.." | |
../../../node_modules/react-native/scripts/react-native-xcode.sh |
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
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
buildscript { | |
ext { | |
buildToolsVersion = "28.0.3" | |
minSdkVersion = 16 | |
compileSdkVersion = 28 | |
targetSdkVersion = 28 | |
} | |
repositories { |
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
rootProject.name = 'mobileapp' | |
/** | |
* YOUR PATH TO REACT NATIVE CLI (from android folder) | |
*/ | |
apply from: file("../../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) | |
include ':app' |
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
apply plugin: "com.android.application" | |
import com.android.build.OutputFile | |
project.ext.react = [ | |
entryFile: "index.js", | |
enableHermes: false, | |
/** | |
* YOUR REACT NATIVE PATH (from your package folder) | |
*/ |
NewerOlder