Skip to content

Instantly share code, notes, and snippets.

View marklawlor's full-sized avatar
💯

Mark Lawlor marklawlor

💯
View GitHub Profile
/* eslint-disable @typescript-eslint/ban-types */
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { Prisma, PrismaClient, PrismaPromise } from "@prisma/client";
import type { CamelCase, Merge, SnakeCase, PascalCase } from "type-fest";
import { ColumnType } from "kysely";
export type KyselyOverrides = {
[Model in Prisma.ModelName]?: {
[P in keyof Table<Model>]?: ColumnType<any>;
};
@marklawlor
marklawlor / kysely-types.ts
Last active August 3, 2023 19:29
Prisma/Kysely database
/* eslint-disable @typescript-eslint/ban-types */
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { Prisma, PrismaClient, PrismaPromise } from "@prisma/client";
import type { CamelCase, Merge, SnakeCase, PascalCase } from "type-fest";
import {
ColumnType,
DummyDriver,
Generated,
Kysely,
MysqlAdapter,
import type { PressableProps } from "react-native";
import { View, Text, Pressable } from "react-native";
import type { ReactNode } from "react";
import React from "react";
import clsx from 'clsx';
interface Props extends PressableProps {
variant?: "dark" | "light" | "filled" | "outline" | "ghost";
children: ReactNode;
}
// This file was generated by tailwindcss-react-native. Do not edit!
const { StyleSheet } = require("react-native")
module.exports = {
styles: {
"flex-1": {
"flexGrow": 1,
"flexShrink": 1
},
"flex-row": {
"flexDirection": "row"
diff --git a/node_modules/@expo/next-adapter/build/withExpo.js b/node_modules/@expo/next-adapter/build/withExpo.js
index 2e63eb4..b1cf9a9 100644
--- a/node_modules/@expo/next-adapter/build/withExpo.js
+++ b/node_modules/@expo/next-adapter/build/withExpo.js
@@ -7,8 +7,8 @@ function withExpo(nextConfig = {}) {
// Prevent define plugin from overwriting Next.js environment.
process.env.EXPO_WEBPACK_DEFINE_ENVIRONMENT_AS_KEYS = 'true';
const expoConfig = addons_1.withUnimodules(config, {
- projectRoot: nextConfig.projectRoot || process.cwd(),
- }, { supportsFontLoading: false });
module.exports = {
presets: ["next/babel"],
plugins: [["react-native-web", { commonjs: true }]],
};
@marklawlor
marklawlor / main.js
Created April 28, 2021 00:07
Moti + Storybook + React-Native-Web
const path = require("path");
const { withUnimodules } = require("@expo/webpack-config/addons");
module.exports = {
stories: ["../src/**/*.stories.@(ts|tsx|js|jsx)"],
webpackFinal: async (config) => {
return withUnimodules(
config,
{
projectRoot: path.resolve(__dirname, "../"),
diff --git a/node_modules/babel-preset-expo/index.js b/node_modules/babel-preset-expo/index.js
index 1022490..08c8182 100644
--- a/node_modules/babel-preset-expo/index.js
+++ b/node_modules/babel-preset-expo/index.js
@@ -31,6 +31,8 @@ module.exports = function(api, options = {}) {
// Reference: https://github.com/expo/expo/pull/4685#discussion_r307143920
require('metro-react-native-babel-preset'),
{
+ dev: platform === 'web',
+ useTransformReactJsxExperimental: platform === 'web',
var DOM = (selector, context) => (
dom => DOM2 = (selector, content) => (
DOM2.toString = () => dom,
dom += `<${selector}>${content}<\/${selector.split(' ')[0]}>`,
DOM2
))('')
(selector, context)
@marklawlor
marklawlor / Error regex
Last active November 1, 2015 22:55
JAWS JSON error responses
.*"status":400.*