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
6 changes: 6 additions & 0 deletions .changeset/swift-worms-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@react-native-documents/picker": patch
"@react-native-documents/viewer": patch
---

fix: remove use of deprecated apis
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
rules: {
// flags jest.config.ts as a problem
'jest/no-jest-import': 'off',
'react-native/no-inline-styles': 'off',
},
ignorePatterns: ['**/lib/*', 'node_modules/*', '**/build/*'],
}
31 changes: 12 additions & 19 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ on:
jobs:
android-build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [old, new]
include:
- arch: old
new-arch-enabled: false
description: "old architecture"
- arch: new
new-arch-enabled: true
description: "new architecture"
steps:
- uses: actions/checkout@v4
- name: Use Node.js lts
Expand All @@ -27,23 +37,6 @@ jobs:
java-version: '17'
- name: Install dependencies
run: yarn install --immutable
- name: Build android example app on old architecture
run: ./gradlew app:assembleDebug -PnewArchEnabled=false
working-directory: example/android
android-build-new-arch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js lts
uses: actions/setup-node@v4
with:
node-version: lts/*
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Install dependencies
run: yarn install --immutable
- name: Build android example app on new architecture
run: ./gradlew app:assembleDebug -PnewArchEnabled=true
- name: Build android example app on ${{ matrix.description }}
run: ./gradlew app:assembleDebug -PnewArchEnabled=${{ matrix.new-arch-enabled }}
working-directory: example/android
37 changes: 13 additions & 24 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@ on:

jobs:
ios-build:
runs-on: macos-latest
runs-on: macos-26
strategy:
matrix:
arch: [old, new]
include:
- arch: old
new-arch-enabled: 0
description: "old architecture"
- arch: new
new-arch-enabled: 1
description: "new architecture"
steps:
- uses: actions/checkout@v4
- name: Use Node.js lts
Expand All @@ -31,29 +41,8 @@ jobs:
- name: Install dependencies
run: yarn install --immutable
- name: Install pods
run: RCT_NEW_ARCH_ENABLED=0 RCT_USE_PREBUILT_RNCORE=1 RCT_USE_RN_DEP=1 npx pod-install
run: RCT_NEW_ARCH_ENABLED=${{ matrix.new-arch-enabled }} RCT_USE_PREBUILT_RNCORE=1 RCT_USE_RN_DEP=1 npx pod-install
working-directory: example/ios
- name: Build ios example app on old architecture
run: xcodebuild -scheme ReactTestApp -workspace document-picker-example.xcworkspace ONLY_ACTIVE_ARCH=NO -sdk iphonesimulator -configuration Debug
working-directory: example/ios
ios-build-new-arch:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js lts
uses: actions/setup-node@v4
with:
node-version: lts/*
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
working-directory: example/ios
bundler-cache: true
- name: Install dependencies
run: yarn install --immutable
- name: Install pods for new arch
run: RCT_NEW_ARCH_ENABLED=1 RCT_USE_PREBUILT_RNCORE=1 RCT_USE_RN_DEP=1 npx pod-install
working-directory: example/ios
- name: Build ios example app on new architecture
- name: Build ios example app on ${{ matrix.description }}
run: xcodebuild -scheme ReactTestApp -workspace document-picker-example.xcworkspace ONLY_ACTIVE_ARCH=NO -sdk iphonesimulator -configuration Debug
working-directory: example/ios
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# react-native-documents

[![npm](https://img.shields.io/badge/npm-@react--native--documents-red?logo=npm)](https://www.npmjs.com/org/react-native-documents)

React Native modules for document picking and viewing.

If this is useful to you, [say thanks](https://github.com/sponsors/vonovak). Your support is greatly appreciated!
Expand Down
4 changes: 2 additions & 2 deletions example/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
# Note that this is incompatible with web debugging.
newArchEnabled=false
bridgelessEnabled=false
newArchEnabled=true
bridgelessEnabled=true

# Uncomment the line below to build React Native from source.
#react.buildFromSource=true
Expand Down
Loading
Loading