In computing, memoization or memoisation
is an optimization technique used primarily
to speed up computer programs by storing
the results of expensive function calls and
returning the cached result when the same
inputs occur again.
— wikipedia
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * After some thoughts on this topic, I've decided to turn this gist along with other features into a library so you can zoom | |
| * whatever you want, library you can find here https://github.com/Glazzes/react-native-zoom-toolkit. | |
| * | |
| * @author Santiago Zapata, Glazzes at Github <3 | |
| * @description This gist makes part of an article I'm writing about this topic (in spanish). This solution takes into account | |
| * the linear algebra concepts and geometrical interpretation of the transform-origin property specification, this solution | |
| * takes heavy inspiration from William's Candillon +3 year old video in this topic, however this solution brings it to the | |
| * modern day along with a huge fix that prevents the origin from being displaced by an incorrect offset calculation after | |
| * the first zoom interaction. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express'); | |
| const request = require('request-promise'); | |
| const PORT = process.env.PORT || 5000; | |
| const app = express(); | |
| app.use(express.json()); | |
| const returnScraperApiUrl = (apiKey) => `http://api.scraperapi.com?api_key=${apiKey}&autoparse=true`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState } from 'react' | |
| import { StyleSheet, Text, ScrollView, Button } from 'react-native' | |
| import TextField from './components/TextField' | |
| export default function App() { | |
| const [value, setValue] = useState('') | |
| const [error, setError] = useState<string | null>(null) | |
| return ( | |
| <ScrollView contentContainerStyle={styles.content}> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @author Louay Alakkad (github.com/louy) | |
| * @license MIT https://opensource.org/licenses/MIT | |
| */ | |
| import React from 'react' | |
| import PropTypes from 'prop-types' | |
| import { | |
| NativeModules, | |
| ViewProps, | |
| ViewPropTypes, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| android.support.v8.renderscript.Allocation | android.renderscript.Allocation | |
|---|---|---|
| android.support.v8.renderscript.Element | android.renderscript.Element | |
| android.support.v8.renderscript.RenderScript | android.renderscript.RenderScript | |
| android.support.v8.renderscript.ScriptIntrinsicBlur | android.renderscript.ScriptIntrinsicBlur | |
| android.support.transition.AnimatorUtils | androidx.transition.AnimatorUtils | |
| android.support.transition.ArcMotion | androidx.transition.ArcMotion | |
| android.support.transition.AutoTransition | androidx.transition.AutoTransition | |
| android.support.transition.ChangeBounds | androidx.transition.ChangeBounds | |
| android.support.transition.ChangeClipBounds | androidx.transition.ChangeClipBounds |
Here are the steps to integrate experimented JavaScriptCore. Hopefully this could solve the JSC crash issue on RN 0.59.
yarn add 'jsc-android@next'- Modify build.gradle files.
diff --git a/android/app/build.gradle b/android/app/build.gradleNewerOlder