From 6d530b1bab047f61ffb7fe176d0e24f18e7ba0b5 Mon Sep 17 00:00:00 2001 From: saurshaz Date: Sun, 17 Jan 2021 17:41:53 +0530 Subject: [PATCH] Feature/develop (#32) * - changes to have working on local system, local visual code * - more development * cleanup --- .eslintcache | 2 +- app.json | 24 + applications/app-one-config.ts | 124 + applications/app-one/screen-one.ts | 151 +- applications/app-two-config.ts | 141 + applications/common.ts | 17 + package-lock.json | 7467 +--------------------------- package.json | 11 +- src/App.tsx | 54 +- src/components/ActionComp.tsx | 39 +- src/components/Home.tsx | 16 +- src/components/RandomPic.tsx | 8 +- src/index.js | 8 + 13 files changed, 726 insertions(+), 7336 deletions(-) create mode 100644 app.json create mode 100644 src/index.js diff --git a/.eslintcache b/.eslintcache index 92aa1f5..01c7f3b 100644 --- a/.eslintcache +++ b/.eslintcache @@ -1 +1 @@ -[{"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/index.tsx":"1","/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/App.tsx":"2","/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/Home.tsx":"3","/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/RandomPic.tsx":"4","/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/ActionComp.tsx":"5","/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/About.tsx":"6","/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/Comp5.tsx":"7"},{"size":622,"mtime":1610531812000,"results":"8","hashOfConfig":"9"},{"size":4555,"mtime":1610531812000,"results":"10","hashOfConfig":"9"},{"size":1293,"mtime":1610531812000,"results":"11","hashOfConfig":"9"},{"size":1474,"mtime":1610531812000,"results":"12","hashOfConfig":"9"},{"size":992,"mtime":1610531812000,"results":"13","hashOfConfig":"9"},{"size":816,"mtime":1610531812000,"results":"14","hashOfConfig":"9"},{"size":544,"mtime":1610531812000,"results":"15","hashOfConfig":"9"},{"filePath":"16","messages":"17","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"p39cuj",{"filePath":"18","messages":"19","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"22","messages":"23","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"24","messages":"25","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"28","messages":"29","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/index.tsx",[],"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/App.tsx",[],"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/Home.tsx",[],"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/RandomPic.tsx",[],"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/ActionComp.tsx",[],"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/About.tsx",[],"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/Comp5.tsx",[]] \ No newline at end of file +[{"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/index.tsx":"1","/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/App.tsx":"2","/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/Home.tsx":"3","/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/RandomPic.tsx":"4","/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/ActionComp.tsx":"5","/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/About.tsx":"6","/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/Comp5.tsx":"7"},{"size":645,"mtime":1610851148000,"results":"8","hashOfConfig":"9"},{"size":4555,"mtime":1610871304558,"results":"10","hashOfConfig":"9"},{"size":1293,"mtime":1610871304558,"results":"11","hashOfConfig":"9"},{"size":1474,"mtime":1610871304558,"results":"12","hashOfConfig":"9"},{"size":992,"mtime":1610871304558,"results":"13","hashOfConfig":"9"},{"size":816,"mtime":1610871304558,"results":"14","hashOfConfig":"9"},{"size":544,"mtime":1610871304558,"results":"15","hashOfConfig":"9"},{"filePath":"16","messages":"17","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"p39cuj",{"filePath":"18","messages":"19","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"22","messages":"23","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"24","messages":"25","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"28","messages":"29","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/index.tsx",[],"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/App.tsx",[],"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/Home.tsx",[],"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/RandomPic.tsx",[],"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/ActionComp.tsx",[],"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/About.tsx",[],"/home/saurabh-xyz/code/applerxyz/rn-config-tyler/src/components/Comp5.tsx",[]] \ No newline at end of file diff --git a/app.json b/app.json new file mode 100644 index 0000000..c30df12 --- /dev/null +++ b/app.json @@ -0,0 +1,24 @@ +{ + "expo": { + "name": "rn-config-tyler", + "slug": "rn-config-tyler", + "platforms": ["ios", "android", "web"], + "version": "1.0.0", + "orientation": "portrait", + "scheme": "myapp", + "splash": { + "resizeMode": "contain", + "backgroundColor": "#ffffff" + }, + "updates": { + "fallbackToCacheTimeout": 0 + }, + "assetBundlePatterns": ["**/*"], + "ios": { + "bundleIdentifier": "com.starterapp.mobile", + "supportsTablet": true + }, + "web": {} + } + } + \ No newline at end of file diff --git a/applications/app-one-config.ts b/applications/app-one-config.ts index 264a18b..5855f2c 100644 --- a/applications/app-one-config.ts +++ b/applications/app-one-config.ts @@ -1,5 +1,129 @@ import { rowStyle, styles } from "./common"; + + +export const routes = {}; + +routes.routeOne = { + 0: { + 0: { + // layout: null // evict the earlier 1st column, other way is to hide it + layout: { + colConfig: { + // colSize: 0, // *** change the colSize + + style: { display: "none" } // *** hide the 1st column + } + } + }, + 1: { + layout: { + colConfig: { + colSize: 8 // *** change the colSize + }, + + 1: { + // *** below we are adding a new row(this will replace current layout config values), and this will have 2 columns + 0: { + // col no + colSize: 10, + idx: "RandomPic", + label: "comp5 >> changed at runtime 1" + }, + 1: { + // col no + colSize: 10, + idx: "RandomPic", + label: "comp5 >> changed at runtime 2" + } + } + } + } + } +}; + +routes.routeTwo = { + 0: { + 0: { + // layout: null // evict the earlier 1st column, other way is to hide it + layout: { + colConfig: { + // colSize: 0, // *** change the colSize + style: { display: "block" } // *** hide the 1st column + } + } + }, + 1: { + layout: { + colConfig: { + colSize: 3 // *** change the colSize + }, + + 1: { + // *** below we are adding a new row(this will replace current layout config values), and this will have 2 columns + 0: { + // col no + colSize: 10, + idx: "About", + label: "comp5 >> changed at runtime 1" + }, + 1: { + // col no + colSize: 10, + idx: "About", + label: "comp5 >> changed at runtime 2" + } + } + } + } + } +}; + +// ************************************************* +// "../applications/app-one/screen-one"; +// ************************************************* +// bind events to +// logic that binds + +export const events = { + ///