Skip to content

Instantly share code, notes, and snippets.

View palexs's full-sized avatar

Alexander palexs

View GitHub Profile
@staltz
staltz / introrx.md
Last active November 17, 2024 01:08
The introduction to Reactive Programming you've been missing
@dmueller39
dmueller39 / testing_async_redux_actions.js
Created September 14, 2016 15:18
Testing Async redux actions in jest
function update(value) {
return (dispatch) => new Promise((resolve) => setImmediate(
() => {
dispatch({ type: 'UPDATE', value });
resolve();
}
));
}
import Exponent from 'exponent';
import React from 'react';
import { range } from 'lodash';
import {
StyleSheet,
Dimensions,
ScrollView,
Animated,
Text,
@kiok46
kiok46 / bridge.md
Last active February 16, 2022 08:15
Bridge React-Native and JS

Content of the Gist is from a talk by Peggy Rayzis at Chain React 2017: Chain React 2017: Breaking Down Bridging in React Native by Peggy Rayzis


In order for a native code to talk to JS you would need a bridge.

  • You need to integrate a third-party SDK.
  • High perfomance is crutial
  • You are building a brownfiel app
  • You need access to a platform to a platform API. (Camera, Gyroscope etc.), You will need to use a opensource library or create a bridge.