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
/** | |
* A file-system based build cache provider for `expo run:[android|ios]`. | |
* Available in Expo SDK 53+. | |
* https://docs.expo.dev/guides/cache-builds-remotely/ | |
* | |
* This plugin speeds up local rebuilds by caching `.apk` or `.app` outputs on disk, | |
* based on a stable fingerprint hash provided by Expo CLI. | |
* | |
* Usage: | |
* 1. Save this file as `provider.plugin.js` in your project root. |
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 type { NextConfig } from 'next' | |
function getBabelLoader() { | |
const dev = process.env.NODE_ENV !== 'production' | |
return { | |
loader: 'babel-loader', | |
options: { | |
parserOpts: { | |
plugins: ['typescript', 'jsx'], | |
}, |
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 * as React from 'react' | |
export function Ratings({ | |
value, | |
width = 18, | |
height = 16, | |
gap = 2, | |
maxStars = 5, | |
color = '#f39c12', | |
}: { |
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
// next.config.mjs | |
import type { NextConfig } from 'next' | |
function getBabelLoader() { | |
return { | |
loader: 'babel-loader', | |
options: { | |
presets: [ | |
[ | |
'next/dist/compiled/babel/preset-typescript', |
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
/** | |
* Copyright (c) Meta Platforms, Inc. and affiliates. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
* | |
* | |
*/ | |
const fs = require('fs'); |
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 * as React from 'react' | |
export function useIsMachineTranslationEnabled() { | |
const [isMachineTranslationEnabled, setIsMachineTranslationEnabled] = | |
React.useState(false) | |
React.useEffect(() => { | |
if (isMachineTranslationEnabled) { | |
return | |
} |
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 { parseArgs } from 'node:util' | |
import watchman, { Client } from 'fb-watchman' | |
import ansis from 'ansis' | |
import path from 'node:path' | |
import fs from 'node:fs' | |
import { globSync } from 'fast-glob' | |
import { transformSync } from '@babel/core' | |
import styleXBabelPlugin from '@stylexjs/babel-plugin' |
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
diff --git a/node_modules/react-native-star-io10/src/Error.ts b/node_modules/react-native-star-io10/src/Error.ts | |
new file mode 100644 | |
index 0000000..c9bc58a | |
--- /dev/null | |
+++ b/node_modules/react-native-star-io10/src/Error.ts | |
@@ -0,0 +1,4 @@ | |
+// https://github.com/star-micronics/react-native-star-io10/issues/15 | |
+export interface Error extends globalThis.Error { | |
+ code: string | |
+} |
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
/* | |
Description: | |
This script converts `yield call()` to `yield* call()` syntax and 'redux-saga/effects' to 'typed-redux-saga' | |
Make sure to commit your files first before you run the below script! | |
Usage: | |
npx jscodeshift --parser tsx -t ./migrate-redux-saga.ts ./sagas/**\/*.ts | |
Before: |
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
test |
NewerOlder