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
// This file is from an actual react app that would install the library outlined in the rest of these files | |
import React from 'react' | |
import { SafeAreaView, StyleSheet, View } from 'react-native' | |
import RichTextEditor from 'react-native-rich-text-editor' | |
const styles = StyleSheet.create({ | |
body: { | |
flex: 1, | |
}, | |
inputContainer: { |
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
// bindings can be isolated/upstreamed. I'm inlining it just for the example | |
type request; | |
type response; | |
[@bs.new] external makeXMLHttpRequest: unit => request = "XMLHttpRequest"; | |
[@bs.send] external addEventListener: (request, string, unit => unit) => unit = "addEventListener"; | |
[@bs.get] external response: request => response = "response"; | |
[@bs.send] external open_: (request, string, string) => unit = "open"; | |
[@bs.send] external send: request => unit = "send"; | |
[@bs.send] external abort: request => unit = "abort"; | |
// ========= |
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 { createHash } from 'crypto' | |
import { defineConfig } from 'vite' | |
import react from '@vitejs/plugin-react' | |
import { | |
defaultRequestToExternal, | |
defaultRequestToHandle | |
} from '@wordpress/dependency-extraction-webpack-plugin/lib/util.js' | |
import json2php from 'json2php' | |
import packageMeta from './package.json'; |
OlderNewer