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/typed-scss-modules/dist/lib/sass/file-to-class-names.js b/node_modules/typed-scss-modules/dist/lib/sass/file-to-class-names.js | |
index 6c728e5..23fc66a 100644 | |
--- a/node_modules/typed-scss-modules/dist/lib/sass/file-to-class-names.js | |
+++ b/node_modules/typed-scss-modules/dist/lib/sass/file-to-class-names.js | |
@@ -30,7 +30,7 @@ const NAME_FORMATS_WITH_TRANSFORMER = Object.keys(transformersMap); | |
exports.NAME_FORMATS = [...NAME_FORMATS_WITH_TRANSFORMER, "all"]; | |
exports.nameFormatDefault = "camel"; | |
const fileToClassNames = (file, { additionalData, includePaths = [], nameFormat: rawNameFormat, implementation, aliases, aliasPrefixes, importer, } = {}) => __awaiter(void 0, void 0, void 0, function* () { | |
- const { renderSync } = (0, implementations_1.getImplementation)(implementation); | |
+ const { compile } = (0, implementations_1.getImplementation)(implementation); |
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/typed-scss-modules/dist/lib/sass/file-to-class-names.js b/node_modules/typed-scss-modules/dist/lib/sass/file-to-class-names.js | |
index 6c728e5..23fc66a 100644 | |
--- a/node_modules/typed-scss-modules/dist/lib/sass/file-to-class-names.js | |
+++ b/node_modules/typed-scss-modules/dist/lib/sass/file-to-class-names.js | |
@@ -30,7 +30,7 @@ const NAME_FORMATS_WITH_TRANSFORMER = Object.keys(transformersMap); | |
exports.NAME_FORMATS = [...NAME_FORMATS_WITH_TRANSFORMER, "all"]; | |
exports.nameFormatDefault = "camel"; | |
const fileToClassNames = (file, { additionalData, includePaths = [], nameFormat: rawNameFormat, implementation, aliases, aliasPrefixes, importer, } = {}) => __awaiter(void 0, void 0, void 0, function* () { | |
- const { renderSync } = (0, implementations_1.getImplementation)(implementation); | |
+ const { compile } = (0, implementations_1.getImplementation)(implementation); |
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, { forwardRef, useEffect, useRef, useState } from 'react' | |
import { Animated, View } from 'react-native' | |
import styled from 'styled-components/native' | |
import { almostBlack, offWhite } from '../../colors' | |
import { baseText } from '../../styles' | |
import { measure } from '../../utils/view.util' | |
import { Touchable } from '../touchable' | |
type ItemProps = { | |
text: 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
import { useMemo, useState } from 'react' | |
type Pagination = { | |
currentPage: number | |
setPage: (page: number) => void | |
} | |
export function usePagination<T>(items: T[] = [], pageSize = 10): [T[], Pagination] { | |
const [currentPage, setPage] = useState(0) |
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 fs = require('fs') | |
const path = require('path') | |
function logFiles(dir, excludes) { | |
for (const fileName of fs.readdirSync(dir)) { | |
const filePath = path.resolve(dir, fileName) | |
const stats = fs.statSync(filePath) | |
if (excludes.some(exclude => filePath.includes(exclude))) { | |
continue |
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 { useRef, useCallback, useEffect } from "react"; | |
export const useClickOutside = (callback, active) => { | |
const ref = useRef(null); | |
const handler = useCallback( | |
e => { | |
if (ref.current && !ref.current.contains(e.target)) { | |
callback(); | |
} |
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
class Observable { | |
constructor({ initFn, element, eventName }) { | |
if (initFn) { | |
this._initFn = initFn | |
} | |
else if (element && eventName) { | |
this._event = { | |
listener: event => { | |
this.next(event) |
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
class Tester { | |
constructor(app) { | |
this.app = app | |
} | |
test(cases) { | |
cases.forEach(tc => { | |
if (app(tc.input) !== tc.output) { | |
throw new Error() | |
} |
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 stringToCamel = (str: string) => { | |
str = str.replace(/[-_\s]+(.)?/g, (_, ch) => (ch ? ch.toUpperCase() : '')) | |
return str.substr(0, 1).toLowerCase() + str.substr(1) | |
} | |
const objectToCamel = (obj: Object) => | |
Object.keys(obj).reduce((tutti, prop) => { | |
tutti[stringToCamel(prop)] = obj[prop] | |
return tutti | |
}, {}) |
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 { ComponentClass } from 'react' | |
export const compose = <P>( | |
...hocs: any[] | |
): ((comp: ((props: P) => JSX.Element) | ComponentClass<P>) => ComponentClass<P>) => | |
hocs.reduceRight((a, b) => (arg: any) => b(a(arg))) |
NewerOlder