Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vonovak/react-native-simple-toast
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.1
Choose a base ref
...
head repository: vonovak/react-native-simple-toast
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.0
Choose a head ref
  • 2 commits
  • 14 files changed
  • 1 contributor

Commits on Jul 19, 2023

  1. feat: support old arch as well (#55)

    BREAKING CHANGE: support old arch as well as the new
    vonovak authored Jul 19, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    91f05fa View commit details
  2. chore: release 3.0.0

    vonovak committed Jul 19, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    825c0bd View commit details
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -4,9 +4,10 @@ React Native Toast component for both Android and iOS. It just lets iOS users ha

## Summary

- extremely simple fire-and-forget api, same as `ToastAndroid`
- renders on top of `Modal`s and `Alert`s
- customizable styling
✅ supports both old and new architecture
✅ extremely simple fire-and-forget api, same as `ToastAndroid`
✅ renders on top of `Modal`s and `Alert`s
✅ customizable styling

## Screenshots

@@ -36,13 +37,9 @@ React Native Toast component for both Android and iOS. It just lets iOS users ha

## Install

Requires React Native 0.70 or later because the lib needs new architecture enabled. Version 2 will not work with old architecture. Use version 1 if you need to use it with the old architecture.

Please [read more about the new architecture here](https://reactnative.dev/docs/next/the-new-architecture/use-app-template#enable-the-new-architecture).

```bash
yarn add react-native-simple-toast
cd ios && RCT_NEW_ARCH_ENABLED=1 pod install
cd ios && pod install
```

then rebuild your project
5 changes: 2 additions & 3 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
ENV['RCT_NEW_ARCH_ENABLED'] = '1'

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/react-native/scripts/native_modules'

platform :ios, min_ios_version_supported
prepare_react_native_project!

flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
# flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
flipper_config = FlipperConfiguration.disabled

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Loading