From 67a076f530f95de7fe44915c8591b610fdcef9d0 Mon Sep 17 00:00:00 2001 From: Fernando Rojo Date: Mon, 16 Oct 2023 12:21:46 -0400 Subject: [PATCH] podspec --- README.md | 19 +++++++++++++++++++ ios/Burnt.podspec | 4 ++-- package.json | 2 +- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c61cdc6..889eddd 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,25 @@ function MyApp({ Component, pageProps }) { To configure your `Toaster`, please reference the `sonner` [docs](https://github.com/emilkowalski/sonner/tree/main#theme). +### Expo Web + +If you're using Expo Web, you'll need to add the following to your +`metro.config.js` file: + +```js +// Learn more https://docs.expo.io/guides/customizing-metro +const { getDefaultConfig } = require("expo/metro-config"); + +const config = getDefaultConfig(__dirname); + +// --- burnt --- +config.resolver.sourceExts.push("mjs"); +config.resolver.sourceExts.push("cjs"); +// --- end burnt --- + +module.exports = config; +``` + ### Plain React Native ```sh diff --git a/ios/Burnt.podspec b/ios/Burnt.podspec index 678869f..dfd07e4 100644 --- a/ios/Burnt.podspec +++ b/ios/Burnt.podspec @@ -14,8 +14,8 @@ Pod::Spec.new do |s| s.swift_version = '5.4' s.source = { git: 'https://github.com/nandorojo/burnt' } s.static_framework = true - s.dependency 'SPIndicator' - s.dependency 'SPAlert' + s.dependency 'SPIndicator', '~> 1.6' + s.dependency 'SPAlert', '~> 4.2' s.dependency 'ExpoModulesCore' diff --git a/package.json b/package.json index a9fdc77..e364c4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "burnt", - "version": "0.11.7", + "version": "0.12.0", "description": "Cross-platform toasts, powered by native elements.", "main": "build/index.js", "types": "index.d.ts",