This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-22
Channels
- # bangalore-clj (6)
- # beginners (110)
- # boot (49)
- # cider (13)
- # cljs-dev (35)
- # cljsrn (5)
- # clojure (145)
- # clojure-conj (3)
- # clojure-dev (60)
- # clojure-italy (2)
- # clojure-nl (3)
- # clojure-russia (3)
- # clojure-serbia (1)
- # clojure-spec (116)
- # clojure-uk (58)
- # clojurescript (235)
- # cursive (14)
- # datascript (7)
- # datomic (31)
- # dirac (144)
- # emacs (1)
- # events (1)
- # hoplon (12)
- # leiningen (11)
- # luminus (60)
- # lumo (19)
- # off-topic (18)
- # om (74)
- # onyx (5)
- # pedestal (13)
- # precept (3)
- # re-frame (3)
- # reagent (15)
- # remote-jobs (7)
- # ring-swagger (25)
- # rum (1)
- # untangled (53)
- # vim (3)
I would to design page with tab view in react native with clojurescript. I have tried the possibilities. can anyone share example code to achieve it ?
about adding fonts to RN/cljsrn...
1. I follow this guide https://medium.com/@danielskripnik/how-to-add-and-remove-custom-fonts-in-react-native-b2830084b0e4 .
2. I try to start debugging using, following https://github.com/drapanjanas/re-natal#using-real-android-device
3. I get an error, so I do cd android; ./gradlew installDebug --info
instead of react-native run-android
, resulting in:
[...]
Skipping task ':app:processDebugManifest' as it is up-to-date (took 0.011 secs).
:app:processDebugManifest UP-TO-DATE
:app:processDebugManifest (Thread[main,5,main]) completed. Took 0.013 secs.
:app:processDebugResources (Thread[main,5,main]) started.
:app:processDebugResources
Executing task ':app:processDebugResources' (up-to-date check took 0.012 secs) due to:
Output file <project-home>/android/app/build/intermediates/symbols/debug has changed.
Output file <project-home>/android/app/build/intermediates/res/resources-debug.ap_ has changed.
Output file <project-home>/android/app/build/generated/source/r/debug/com/fleeman has been removed.
All input files are considered out-of-date for incremental task ':app:processDebugResources'.
Starting process 'command '/opt/android-sdk-linux/build-tools/25.0.0/aapt''. Working directory: <project-home>/android/app Command: /opt/android-sdk-linux/build-tools/25.0.0/aapt package -f --no-crunch -I /opt/android-sdk
-linux/platforms/android-25/android.jar -M <project-home>/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml -S <project-home>/android/app/build/intermediates/res/merged/debug -A <project-home>/android/app/build/intermediates/assets/debug -m -J <project-home>/android/app/build/generated/source/r/debug -F <project-home>/android/app/build/intermediates/res/resources-debug.ap_ --debug-mode --custom-package com.fleeman -0 apk --output-text-symbols <project-home>/android/app/build/intermediates/symbols/debug
Successfully started process 'command '/opt/android-sdk-linux/build-tools/25.0.0/aapt''
Unknown source file : <project-home>/android/app/build/intermediates/assets/debug/fonts/CafВ FranЗoise.otf: error: Invalid filename. Unable to add.
:app:processDebugResources FAILED
:app:processDebugResources (Thread[main,5,main]) completed. Took 0.086 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/opt/android-sdk-linux/build-tools/25.0.0/aapt'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 13.681 secs
Stopped 0 compiler daemon(s).
So, the font is not found when I'm trying to start the app in debug mode... So well, how can I make it work?Oh, and the font seems to be there:
$ ls android/app/build/intermediates/assets/debug/fonts
CafВ FranЗoise.otf
apparently, the font name has some weird characters... seems to be solved.
Using re-natal/cljsrn + rum and upgrading to RN 0.45, I get a warning Warning: ...: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks
.
Checking rum.core
(generated by re-natal), I have this method:
(defn- render-all [queue]
(doseq [comp queue
:when (.isMounted comp)]
(.forceUpdate comp)))
Should this be changed?