Skip to content

Commit

Permalink
podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
nandorojo committed Oct 16, 2023
1 parent 9266b45 commit 67a076f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions ios/Burnt.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 67a076f

Please sign in to comment.