Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,20 @@ jobs:
with:
xcode-version: ${{ env.XCODE_VERSION }}

- name: Cache DerivedData
if: env.turbo_cache_hit != 1
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/Library/Developer/Xcode/DerivedData
key: ${{ runner.os }}-deriveddata-${{ hashFiles('example/ios/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-deriveddata-

- name: Install cocoapods
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
if: env.turbo_cache_hit != 1
run: |
cd example
bundle install
bundle exec pod repo update --verbose
bundle exec pod install --project-directory=ios
pod install --project-directory=ios

- name: Build example for iOS
run: |
Expand Down
13 changes: 5 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ project.xcworkspace
local.properties
android.iml

# Cocoapods
#
example/ios/Pods
# Example app Android (iOS-only library)
example/android/

# iOS example (generated by expo prebuild + pod install)
example/ios/

# Ruby
example/vendor/
Expand All @@ -55,11 +57,6 @@ npm-debug.log
yarn-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
android/app/libs
android/keystores/debug.keystore

# Yarn
.yarn/*
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Changelog

## 0.1.0

### Added
- `ScrollEdgeBar` — a React Native container component that wraps any scroll view with sticky top and/or bottom bars
- `ScrollEdgeBar.TopBar` and `ScrollEdgeBar.BottomBar` slot components for placing bar content
- iOS 26+: bars use the system glass blur effect via `safeAreaBar`, seamlessly extending the navigation bar or tab bar
- iOS 16–25: bars are displayed using `safeAreaInset` (same layout, no blur effect)
- `estimatedTopBarHeight` / `estimatedBottomBarHeight` props to prevent flicker before layout
- TypeScript types and a compound React component API
- Full Fabric (New Architecture) support
10 changes: 1 addition & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ The [example app](/example/) demonstrates usage of the library. You need to run

It is configured to use the local version of the library, so any changes you make to the library's source code will be reflected in the example app. Changes to the library's JavaScript code will be reflected in the example app without a rebuild, but native code changes will require a rebuild of the example app.

If you want to use Android Studio or Xcode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/ScrollEdgeBarExample.xcworkspace` in Xcode and find the source files at `Pods > Development Pods > react-native-scroll-edge-bar`.

To edit the Java or Kotlin files, open `example/android` in Android studio and find the source files at `react-native-scroll-edge-bar` under `Android`.
If you want to use Xcode to edit the native code, open `example/ios/ScrollEdgeBarExample.xcworkspace` and find the source files at `Pods > Development Pods > react-native-scroll-edge-bar`.

You can use various commands from the root directory to work with the project.

Expand All @@ -39,12 +37,6 @@ To start the packager:
yarn example start
```

To run the example app on Android:

```sh
yarn example android
```

To run the example app on iOS:

```sh
Expand Down
Loading
Loading