summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbdus <abdus@abdus.net>2021-02-11 09:27:54 +0530
committerAbdus <abdus@abdus.net>2021-02-11 09:27:54 +0530
commit07ea032442a01d5f58164d1418a1b4e9e5025b24 (patch)
tree565929eedb37b6e69d40e6c6363fba2ec5292b48
parentb84f47deaf486df96e85d67d3c97be39655885b6 (diff)
downloadabdus.net-07ea032442a01d5f58164d1418a1b4e9e5025b24.tar.bz2
abdus.net-07ea032442a01d5f58164d1418a1b4e9e5025b24.zip
new content
-rw-r--r--.vim-session.vim8
-rw-r--r--config.toml10
-rw-r--r--content/notes/react-native-notes.md23
-rw-r--r--themes/bronn/layouts/_default/single.html1
4 files changed, 25 insertions, 17 deletions
diff --git a/.vim-session.vim b/.vim-session.vim
index 2c7c96b..410edd5 100644
--- a/.vim-session.vim
+++ b/.vim-session.vim
@@ -7,7 +7,7 @@ if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
let s:wipebuf = bufnr('%')
endif
set shortmess=aoO
-badd +65 content/notes/react-native-notes.md
+badd +72 content/notes/react-native-notes.md
argglobal
%argdel
$argadd content/posts/typescript-webpack-setup.md
@@ -28,12 +28,12 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
-let s:l = 48 - ((18 * winheight(0) + 22) / 44)
+let s:l = 8 - ((7 * winheight(0) + 22) / 44)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
-48
-normal! 0
+8
+normal! 045|
tabnext 1
if exists('s:wipebuf') && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
silent exe 'bwipe ' . s:wipebuf
diff --git a/config.toml b/config.toml
index c417e98..4f0fed3 100644
--- a/config.toml
+++ b/config.toml
@@ -24,26 +24,26 @@ Paginate = 8
identifier = "about"
name = "About"
url = "/self/"
- weight = 10
+ weight = 3
[[menu.main]]
identifier = "daily-log"
name = "daily logs"
url = "https://log.abdus.net"
- weight = 10
+ weight = 5
[[menu.main]]
identifier = "blog"
name = "blog"
url = "/posts/"
- weight = 10
+ weight = 2
[[menu.main]]
identifier = "notes"
name = "notes"
url = "/notes/"
- weight = 10
+ weight = 4
[markup]
[markup.tableOfContents]
@@ -64,5 +64,5 @@ tabWidth = 2
[permalinks]
pages = "/:filename"
-posts = "/blog/:year/:title/"
+posts = "/blog/:year/:filename/"
notes = "/notes/:filename"
diff --git a/content/notes/react-native-notes.md b/content/notes/react-native-notes.md
index f0d3ef0..7bc1b66 100644
--- a/content/notes/react-native-notes.md
+++ b/content/notes/react-native-notes.md
@@ -1,10 +1,11 @@
---
title: "React Native Notes"
date: 2021-02-10T18:09:53+05:30
-draft: true
-tags: []
-categories: []
-sources: []
+draft: false
+tags: [javascript, react, react-native]
+categories: [javascript]
+sources:
+ - https://academy.zerotomastery.io/courses/1050496
---
<!--
@@ -62,7 +63,13 @@ Hence, the performence gain.
Note that, a React Native app running in iOS will be a bit faster than its
Android counterpart. JavaScriptCore is already available in iOS.
-[Hermes](https://reactnative.dev/docs/hermes) is a new JavaScript which is going
-to replace JavaScriptCore in coming days (one could opt-in for it).
-Hermes is written specifically for running React Native apps. It boosts
-_performence_, reduces _memory usage_ and improves _start-up time_.
+- [Hermes](https://reactnative.dev/docs/hermes) is a new JavaScript which is going
+ to replace JavaScriptCore in coming days (one could opt-in for it).
+ Hermes is written specifically for running React Native apps. It boosts
+ _performence_, reduces _memory usage_ and improves _start-up time_.
+
+ > The downside of using React Native is that it ships a Virtual Machine along
+ > with the Release APK which makes the app relatively slow and bigger in size.
+
+- `export const ComponentName` > `export default ComponentName`. Former will
+ make sure that `import` namings are consistent throughout the project codebase.
diff --git a/themes/bronn/layouts/_default/single.html b/themes/bronn/layouts/_default/single.html
index e617d87..5ebe333 100644
--- a/themes/bronn/layouts/_default/single.html
+++ b/themes/bronn/layouts/_default/single.html
@@ -113,6 +113,7 @@
background-color: #fff;
padding: 0.3rem;
margin: 2rem 0;
+ border: none;
}
</style>