Fork me on GitHub

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 . 2. I try to start debugging using, following 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.
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'.
> 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.


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?