From 6060c2630fe0c18fd9a41a4b0ffd6ee6053e7c35 Mon Sep 17 00:00:00 2001 From: Rohit Vaswani Date: Wed, 19 Jan 2022 13:11:00 +0530 Subject: [PATCH 01/99] feat(live-like): Add the comments --- .expo/packager-info.json | 5 +- .expo/settings.json | 4 +- .gitignore | 99 +++++++++++++++++++ LiveLikeAndroidView.jsx | 3 +- android/.idea/gradle.xml | 1 - android/.idea/jarRepositories.xml | 5 + .../demo/LiveLikeAndroidViewManager.kt | 4 +- android/local.properties | 4 +- 8 files changed, 115 insertions(+), 10 deletions(-) create mode 100644 .gitignore diff --git a/.expo/packager-info.json b/.expo/packager-info.json index 36cff4cb..08d42c46 100644 --- a/.expo/packager-info.json +++ b/.expo/packager-info.json @@ -1,9 +1,10 @@ { "expoServerPort": null, - "packagerPort": null, + "packagerPort": 8082, "packagerPid": null, "expoServerNgrokUrl": null, "packagerNgrokUrl": null, "ngrokPid": null, - "webpackServerPort": null + "webpackServerPort": null, + "devToolsPort": 19002 } diff --git a/.expo/settings.json b/.expo/settings.json index 37f384fc..4377edd6 100644 --- a/.expo/settings.json +++ b/.expo/settings.json @@ -1,10 +1,10 @@ { - "scheme": "com.livelike.demo", "hostType": "lan", "lanType": "ip", "devClient": true, "dev": true, "minify": false, "urlRandomness": null, - "https": false + "https": false, + "scheme": "com.livelike.demo" } diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..28e76c63 --- /dev/null +++ b/.gitignore @@ -0,0 +1,99 @@ +# Built application files +*.apk +*.ap_ +*.aab + +# Files for the ART/Dalvik VM +*.dex + +# Java class files +*.class + +# Generated files +bin/ +gen/ +out/ +.idea/ +# Uncomment the following line in case you need and you don't have the release build type files in your app +# release/ + +# Gradle files +.gradle/ +build/ + +# expo files +.expo/packager-info.json +.expo/settings.json + +# Local configuration file (sdk path, etc) +local.properties + +# Proguard folder generated by Eclipse +proguard/ + +# Log Files +*.log + +# Android Studio Navigation editor temp files +.navigation/ + +# Android Studio captures folder +captures/ + +# IntelliJ +*.iml +.idea/workspace.xml +.idea/tasks.xml +.idea/gradle.xml +.idea/assetWizardSettings.xml +.idea/dictionaries +.idea/libraries +# Android Studio 3 in .gitignore file. +.idea/caches +.idea/modules.xml +# Comment next line if keeping position of elements in Navigation Editor is relevant for you +.idea/navEditor.xml +.idea/ +android/.idea/ + +# Keystore files +# Uncomment the following lines if you do not want to check your keystore files in. +#*.jks +#*.keystore + +# External native build folder generated in Android Studio 2.2 and later +.externalNativeBuild +.cxx/ + +# Google Services (e.g. APIs or Firebase) +# google-services.json + +# Freeline +freeline.py +freeline/ +freeline_project_description.json + +# fastlane +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots +fastlane/test_output +fastlane/readme.md + +# Version control +vcs.xml + +# lint +lint/intermediates/ +lint/generated/ +lint/outputs/ +lint/tmp/ +# lint/reports/ + +# Android Profiling +*.hprof + +#node_modules of commitizen library +node_modules/ +package.json +yarn.lock \ No newline at end of file diff --git a/LiveLikeAndroidView.jsx b/LiveLikeAndroidView.jsx index 1a846812..e95109cf 100644 --- a/LiveLikeAndroidView.jsx +++ b/LiveLikeAndroidView.jsx @@ -2,6 +2,7 @@ import React, { useEffect, useRef } from 'react'; import { UIManager, findNodeHandle } from 'react-native'; import { PixelRatio} from "react-native"; import { LiveLikeAndroidViewManager } from './android-view-manager'; +import {Dimensions} from "react-native-web" const createFragment = (viewId) => UIManager.dispatchViewManagerCommand( @@ -25,7 +26,7 @@ export const LiveLikeAndroidView = () => { // converts dpi to px, provide desired height height: PixelRatio.getPixelSizeForLayoutSize(750), // converts dpi to px, provide desired width - width: PixelRatio.getPixelSizeForLayoutSize(400) + width: PixelRatio.getPixelSizeForLayoutSize(420) }} ref={ref} /> diff --git a/android/.idea/gradle.xml b/android/.idea/gradle.xml index f9c779e9..bad93220 100644 --- a/android/.idea/gradle.xml +++ b/android/.idea/gradle.xml @@ -18,7 +18,6 @@