Skip to content

Instantly share code, notes, and snippets.

View muskeinsingh's full-sized avatar
🏠
Working from home

Muskein Singh muskeinsingh

🏠
Working from home
View GitHub Profile
@muskeinsingh
muskeinsingh / tasks-web-ui.md
Last active May 28, 2021 10:47
pending tasks in web (msite + richviews), zion is already documented in the repo

Richviews

  • move to brotli

mSite

  • run webpack on server
  • enforce ts for new files
  • resolve ts errors
  • typescript upgrade
  • babel + jest upgrade
  • React.createContext for context
@muskeinsingh
muskeinsingh / reactnative.md
Created February 13, 2021 13:39
React Native - Truly Cross Platform with Android, iOS and Web

Is React Native truly Cross Platform?

Abstract

In this talk, we will range over how Native Modules and Native UI Modules work in React Native and whether they can be brought over to the web. We will try to explore how asynchronous bridges work in React Native for both Android and iOS and if they can be used in a similar fashion in the web world using React Native for Web.

Native Modules and Native UI Modules on React Native are what make it easy to understand and leverage Native capabilities on Android and iOS apps. React Native suggests us to offload a lot of heavy computing to Native Modules. Native Modules give us a way to reuse existing business logic from the native side, especially in a hybrid app. It also makes it easier for developers to use Native Capabilities like Camera, Gestures, Haptic Feedbacks, Play Services, Accelerometers on the device and bring trigger hooks on to the React world. While these capabilities on React Native make app development very easy and scalable, can these tec

  • fix key error
  • move to separate folder - components, utils
  • use const instead of let wherever possible
  • use alt property for img
  • make marker component a simple functional component
  • remove commented code
  • className App starts with capital letters, other don't
  • remove empty css class
  • fix mobile view- it just scrolls endlessly on mobile- does not allow to draw - even if not registering touch events, it should not scroll and the board should be limited to screen/window dimensions
  • add favicon in html