.flowconfig file in react-native project is missing - reactjs

I do not have .flowconfig file in my react-native project.
Even then if I add flow locally as :
yarn add --dev flow-bin babel-preset-flow
and then do flow init, it creates an empty .flowconfig file with the latest flow version displayed at end of the file as 0.79.1 . Is it fine? and the rules I had to copy from https://github.com/facebook/react-native/blob/master/.flowconfig which is regularly updated with current flow version(now 0.79.1).
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.4
CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU # 2.20GHz
Memory: 4.56 GB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.3 - /usr/local/bin/node
Yarn: 1.1.0 - /usr/local/bin/yarn
npm: 5.6.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
IDEs:
Android Studio: 3.0 AI-171.4443003
Xcode: 10.0/10L232m - /usr/bin/xcodebuild
npmPackages:
react: 16.4.1 => 16.4.1
react-native: 0.56.0 => 0.56.0
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
Editor: VSCode
Or
should I not use flow at all in the project, cause may be new version of react-native takes care of it?

Related

React Native doesn't install specific version 0.67 , but install 0.68(latest) version

When I try to start a project with a typescript template and specific version,for example: 0.67.4 doesn´t install this version, but install the latest version 0.68.
System:
OS: Windows 10 10.0.19044
CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU # 2.50GHz
Memory: 2.12 GB / 11.87 GB
Binaries:
Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.17 - C:\Program Files\nodejs\yarn.CMD
npm: 8.3.1 - C:\Program Files\nodejs\npm.CMD
The problem is that --template already uses a version, the one of the template, thus --version has no effect. You need to specify the correct typescript template version for the correct react-native version. For 0.67.X this is 6.9.* which is documented here.
Thus, the following should work.
npx react-native init RNCComponents --template react-native-template-typescript#6.9.6
Do not ask me why it is 6.9.6 rather than 6.9.4, but this one was 0.67.2 rather than 0.67.4.

Cordova Android build error “Cannot read property 'version' of null”

I'm trying to run the the cordova build Android command and it's failing. Error message output:
$> cordova build android
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=C:\Android (recommended setting)
ANDROID_HOME=C:\Android (DEPRECATED)
Cannot read property 'version' of null
I have the latest version of cordova, gradle and the Java 8 JDK installed. And all the environments are set. I have no idea what could be the issue.
$ gradle -v
------------------------------------------------------------
Gradle 7.1.1
------------------------------------------------------------
Build time: 2021-07-02 12:16:43 UTC
Revision: 774525a055494e0ece39f522ac7ad17498ce032c
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 1.8.0_301 (Oracle Corporation 25.301-b09)
OS: Windows 10 10.0 amd64
$ cordova --version
10.0.0
$ java -version
java version "1.8.0_301"
Java(TM) SE Runtime Environment (build 1.8.0_301-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.301-b09, mixed mode)
Removing and re-adding the platform resolved my issue.
cordova platform rm android
cordova platform add android

Django deployment using lightsail site-packages are not updated

I am trying to deploy my Django application on AWS Lightsail.
I've been following the AWS tutorial and thought got it quite well.
I've successfully tested application on 0.0.0.0:8000 and the app is working fine.
However, when I deployed with apache, it keeps giving me the Internal Error 500. Hence, I've gone to look up the error_logs to investigate.
Based on my investigation, it seems like all of pip packages I've installed for my app are not installed on system's python's site-packages.
This is the list of packages when I run pip list
pip list
Package Version
appdirs 1.4.4
argon2-cffi 20.1.0
asgiref 3.2.10
astroid 2.4.2
async-generator 1.10
attrs 20.2.0
backcall 0.2.0
bleach 3.2.1
boto3 1.15.18
botocore 1.18.18
cffi 1.14.3
decorator 4.4.2
defusedxml 0.6.0
distlib 0.3.1
Django 3.1
django-carton 1.2.1
django-extensions 3.0.9
django-storages 1.10.1
entrypoints 0.3
filelock 3.0.12
importlib-metadata 2.0.0
ipykernel 5.3.4
ipython 7.16.1
ipython-genutils 0.2.0
ipywidgets 7.5.1
isort 5.6.4
jedi 0.17.2
Jinja2 2.11.2
jmespath 0.10.0
jsonschema 3.2.0
jupyter 1.0.0
jupyter-client 6.1.7
jupyter-console 6.2.0
jupyter-core 4.6.3
jupyterlab-pygments 0.1.2
lazy-object-proxy 1.4.3
MarkupSafe 1.1.1
mccabe 0.6.1
mistune 0.8.4
mysqlclient 1.4.6
nbclient 0.5.1
nbconvert 6.0.7
nbformat 5.0.8
nest-asyncio 1.4.1
notebook 6.1.4
packaging 20.4
pandocfilters 1.4.2
parso 0.7.1
pexpect 4.8.0
pickleshare 0.7.5
Pillow 8.0.0
pip 20.2.1
prometheus-client 0.8.0
prompt-toolkit 3.0.8
psycopg2 2.8.5
ptyprocess 0.6.0
pycparser 2.20
Pygments 2.7.1
pylint 2.6.0
pyparsing 2.4.7
pyrsistent 0.17.3
python-dateutil 2.8.1
pytz 2020.1
pyzmq 19.0.2
qtconsole 4.7.7
QtPy 1.9.0
s3transfer 0.3.3
Send2Trash 1.5.0
setuptools 46.4.0
six 1.15.0
sorl-thumbnail 12.6.3
sqlparse 0.4.1
terminado 0.9.1
testpath 0.4.4
toml 0.10.1
tornado 6.0.4
traitlets 4.3.3
typed-ast 1.4.1
urllib3 1.25.10
virtualenv 20.0.30
wcwidth 0.2.5
webencodings 0.5.1
widgetsnbextension 3.5.1
wrapt 1.12.1
zipp 3.3.1
However, these are not shown in the site-packages folder.
bitnami#ip-172-26-7-56:/opt/bitnami/python/lib/python3.8/site-packages$ ls
appdirs-1.4.4-py3.8.egg mysqlclient-1.4.6-py3.8.egg-info setuptools-46.4.0-py3.8.egg
asgiref MySQLdb setuptools.pth
asgiref-3.2.10.dist-info pip-20.2.1-py3.8.egg six-1.15.0-py3.8.egg
distlib-0.3.1-py3.8.egg psycopg2 sqlparse
django psycopg2-2.8.5-py3.8.egg-info sqlparse-0.3.1.dist-info
Django-3.1-py3.8.egg-info pytz virtualenv-20.0.30-py3.8.egg
easy-install.pth pytz-2020.1.dist-info
filelock-3.0.12-py3.8.egg README.txt
As a result, when the app is run by apache, there is internal server error and the packages I installed are not recognised.
I have spent about 3 days in a row trying to figure out deployment. For me, deployment is the most difficult task and I don't know where I am going. Would anyone recommend the easiest way to deploy django application?
Thanks a million!!

TextInput style is not updating if there is an emoji in text value

TextInput style is not updating if there is an emoji in text value however without emoji the text value color is updating. I would like to know why this issue is happening? Is it react-native issue or I am doing something wrong?
React Native Environment Info:
System:
OS: macOS 10.14.6
CPU: (4) x64 Intel(R) Core(TM) i5-4258U CPU # 2.40GHz
Memory: 151.51 MB / 8.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 11.2.0 - /usr/local/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
Android SDK:
API Levels: 27, 28
Build Tools: 28.0.3, 29.0.0
System Images: android-27 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 10.3/10G8 - /usr/bin/xcodebuild
npmPackages:
react: ^16.8.6 => 16.8.6
react-native: 0.58.6 => 0.58.6
npmGlobalPackages:
create-react-native-app: 2.0.2
react-native-cli: 2.0.1
react-native: 0.59.9
Please open the expo snack and write text with emoji and without emoji and you will see what's the issue right away.
https://snack.expo.io/#hamzashahbaz/textinput-error
Your code looks correct. this might be really react-native ios issue which you have already raised: github.com/facebook/react-native/issues/25874
I had a similar issue with emojis on an TextInput that was highlighting hashtags. After a few days, my solution was to remove this:
[oldText enumerateAttribute:#"NSOriginalFont" inRange:NSMakeRange(0, oldText.length) options:0 usingBlock:^(id value, NSRange range, BOOL *stop) {
if (value){
fontHasBeenUpdatedBySystem = true;
}
}];
from here:
https://github.com/facebook/react-native/blob/main/Libraries/Text/TextInput/RCTBaseTextInputView.m#L112-L116
After that, I also used the patch-package and postinstall libraries to create a patch and apply it automatically after installing all the libraries.

Upgrading XCode to 9.1 and iOS Simulator to iOS 11.1 has slowing down Appium-iOS tests drastically

Upgrading XCode to 9.1 and iOS Simulator to iOS 11.1 has slowing down Appium-java based tests drastically.
My set-up
Appium-ide: 1.2.7
Appium command-line: 1.7.1
IOS: macOS Sierra 10.12.6
XCode: 9.1(9B55)
iOS Simulator: iOS 11.1
Previously it was as below & tests were running with speed
XCode: 8.3
iOS Simulator: iOS 10.3
The WebdriverAgent community is still working on providing support for XCode 9, see this github issue for details.
In the meantime, we have the following work-around:
On a test server, install previous version of XCode (i.e. 8.3.3).
Run this command: xcode-select --switch /Applications/path to XCode8.3.3/
For the time being, devs should build their iOS test app to be compatible with XCOde8.3.3.
The issue has got resolved using latest version XCode 10, Simulators on latest iOS version 11.4 and using latest Appium runtime 1.8.2-beta from npm. Need to the fresh install of iOS to 11.4 & remove any 11.3 / 11.0 / 10.3 version.

Resources