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
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish-bare-resource-fetcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ jobs:
run: mv ${{ env.PACKAGE_DIR }}/${{ env.PACKAGE_NAME }} .

- name: Publish package to npm
run: npm publish $PACKAGE_NAME --tag ${{ env.TAG }} --provenance --access public
run: npm publish $PACKAGE_NAME --tag ${{ env.TAG }} --provenance
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish-expo-resource-fetcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ jobs:
run: mv ${{ env.PACKAGE_DIR }}/${{ env.PACKAGE_NAME }} .

- name: Publish package to npm
run: npm publish $PACKAGE_NAME --tag ${{ env.TAG }} --provenance --access public
run: npm publish $PACKAGE_NAME --tag ${{ env.TAG }} --provenance
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ React Native ExecuTorch is powering [Private Mind](https://privatemind.swmansion
yarn add react-native-executorch

# If you use expo, please add these packages for resource fetching:
yarn add @react-native-executorch/expo-resource-fetcher
yarn add react-native-executorch-expo-resource-fetcher
yarn add expo-file-system expo-asset

#if you use bare React Native project use these packages:
yarn add @react-native-executorch/bare-resource-fetcher
yarn add react-native-executorch-bare-resource-fetcher
yarn add @dr.pogodin/react-native-fs @kesha-antonov/react-native-background-downloader

# Depending on the platform, choose either iOS or Android
Expand All @@ -104,7 +104,7 @@ import {
Message,
initExecutorch,
} from 'react-native-executorch';
import { ExpoResourceFetcher } from '@react-native-executorch/expo-resource-fetcher';
import { ExpoResourceFetcher } from 'react-native-executorch-expo-resource-fetcher';

initExecutorch({
resourceFetcher: ExpoResourceFetcher,
Expand Down
2 changes: 1 addition & 1 deletion apps/bare_rn/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
useLLM,
LLAMA3_2_1B_SPINQUANT,
} from 'react-native-executorch';
import { BareResourceFetcher } from '@react-native-executorch/bare-resource-fetcher';
import { BareResourceFetcher } from 'react-native-executorch-bare-resource-fetcher';
import { setConfig } from '@kesha-antonov/react-native-background-downloader';
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';

Expand Down
2 changes: 1 addition & 1 deletion apps/bare_rn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"dependencies": {
"@dr.pogodin/react-native-fs": "^2.36.2",
"@kesha-antonov/react-native-background-downloader": "^4.4.5",
"@react-native-executorch/bare-resource-fetcher": "workspace:*",
"react": "19.1.0",
"react-native": "0.81.5",
"react-native-executorch": "workspace:*",
"react-native-executorch-bare-resource-fetcher": "workspace:*",
"react-native-safe-area-context": "^5.5.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/computer-vision/app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Drawer } from 'expo-router/drawer';
import { initExecutorch } from 'react-native-executorch';
import { ExpoResourceFetcher } from '@react-native-executorch/expo-resource-fetcher';
import { ExpoResourceFetcher } from 'react-native-executorch-expo-resource-fetcher';

import ColorPalette from '../colors';
import React, { useState } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion apps/computer-vision/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"lint": "eslint . --ext .ts,.tsx --fix"
},
"dependencies": {
"@react-native-executorch/expo-resource-fetcher": "workspace:*",
"@react-native/metro-config": "^0.81.5",
"@react-navigation/drawer": "^7.8.1",
"@react-navigation/native": "^7.1.28",
Expand All @@ -28,6 +27,7 @@
"react-native": "0.81.5",
"react-native-device-info": "^15.0.2",
"react-native-executorch": "workspace:*",
"react-native-executorch-expo-resource-fetcher": "workspace:*",
"react-native-gesture-handler": "~2.28.0",
"react-native-image-picker": "^7.2.2",
"react-native-loading-spinner-overlay": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion apps/computer-vision/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"noEmit": true,
"paths": {
"react-native-executorch": ["../../packages/react-native-executorch/src"],
"@react-native-executorch/expo-resource-fetcher": [
"react-native-executorch-expo-resource-fetcher": [
"../../packages/expo-resource-fetcher/src"
]
}
Expand Down
2 changes: 1 addition & 1 deletion apps/llm/app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Drawer } from 'expo-router/drawer';
import { initExecutorch } from 'react-native-executorch';
import { ExpoResourceFetcher } from '@react-native-executorch/expo-resource-fetcher';
import { ExpoResourceFetcher } from 'react-native-executorch-expo-resource-fetcher';
import ColorPalette from '../colors';
import React, { useState } from 'react';
import { Text, StyleSheet, View } from 'react-native';
Expand Down
2 changes: 1 addition & 1 deletion apps/llm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"lint": "eslint . --ext .ts,.tsx --fix"
},
"dependencies": {
"@react-native-executorch/expo-resource-fetcher": "workspace:*",
"@react-native/metro-config": "^0.81.6",
"@react-navigation/drawer": "^7.8.1",
"@react-navigation/native": "^7.1.28",
Expand All @@ -30,6 +29,7 @@
"react-native-audio-api": "^0.8.2",
"react-native-device-info": "^15.0.2",
"react-native-executorch": "workspace:*",
"react-native-executorch-expo-resource-fetcher": "workspace:*",
"react-native-gesture-handler": "~2.28.0",
"react-native-image-picker": "^7.2.2",
"react-native-loading-spinner-overlay": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion apps/llm/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"noEmit": true,
"paths": {
"react-native-executorch": ["../../packages/react-native-executorch/src"],
"@react-native-executorch/expo-resource-fetcher": [
"react-native-executorch-expo-resource-fetcher": [
"../../packages/expo-resource-fetcher/src"
]
}
Expand Down
2 changes: 1 addition & 1 deletion apps/speech/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ExecutorchLogo from './assets/executorch.svg';
import { Quiz } from './screens/Quiz';
import { TextToSpeechLLMScreen } from './screens/TextToSpeechLLMScreen';
import { initExecutorch } from 'react-native-executorch';
import { ExpoResourceFetcher } from '@react-native-executorch/expo-resource-fetcher';
import { ExpoResourceFetcher } from 'react-native-executorch-expo-resource-fetcher';

initExecutorch({
resourceFetcher: ExpoResourceFetcher,
Expand Down
2 changes: 1 addition & 1 deletion apps/speech/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"lint": "eslint . --ext .ts,.tsx --fix"
},
"dependencies": {
"@react-native-executorch/expo-resource-fetcher": "workspace:*",
"@react-native/metro-config": "^0.84.0",
"buffer": "^6.0.3",
"expo": "^54.0.27",
Expand All @@ -23,6 +22,7 @@
"react-native-audio-api": "0.11.5",
"react-native-device-info": "^15.0.2",
"react-native-executorch": "workspace:*",
"react-native-executorch-expo-resource-fetcher": "workspace:*",
"react-native-reanimated": "~4.2.2",
"react-native-safe-area-context": "~5.7.0",
"react-native-svg": "15.15.3",
Expand Down
2 changes: 1 addition & 1 deletion apps/speech/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"noEmit": true,
"paths": {
"react-native-executorch": ["../../packages/react-native-executorch/src"],
"@react-native-executorch/expo-resource-fetcher": [
"react-native-executorch-expo-resource-fetcher": [
"../../packages/expo-resource-fetcher/src"
]
}
Expand Down
2 changes: 1 addition & 1 deletion apps/text-embeddings/app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Drawer } from 'expo-router/drawer';
import { initExecutorch } from 'react-native-executorch';
import { ExpoResourceFetcher } from '@react-native-executorch/expo-resource-fetcher';
import { ExpoResourceFetcher } from 'react-native-executorch-expo-resource-fetcher';
import ColorPalette from '../colors';
import React, { useState } from 'react';
import { Text, StyleSheet, View } from 'react-native';
Expand Down
2 changes: 1 addition & 1 deletion apps/text-embeddings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"lint": "eslint . --ext .ts,.tsx --fix"
},
"dependencies": {
"@react-native-executorch/expo-resource-fetcher": "workspace:*",
"@react-navigation/drawer": "^7.8.1",
"@react-navigation/native": "^7.1.28",
"expo": "^54.0.27",
Expand All @@ -22,6 +21,7 @@
"react": "19.1.0",
"react-native": "0.81.5",
"react-native-executorch": "workspace:*",
"react-native-executorch-expo-resource-fetcher": "workspace:*",
"react-native-gesture-handler": "~2.30.0",
"react-native-image-picker": "^7.2.2",
"react-native-reanimated": "~4.2.2",
Expand Down
2 changes: 1 addition & 1 deletion apps/text-embeddings/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"noEmit": true,
"paths": {
"react-native-executorch": ["../../packages/react-native-executorch/src"],
"@react-native-executorch/expo-resource-fetcher": [
"react-native-executorch-expo-resource-fetcher": [
"../../packages/expo-resource-fetcher/src"
]
}
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/01-fundamentals/02-loading-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ In our library, you can use two different resource fetching mechanisms. One is i
To use the Expo adapter, please add these libraries:

```bash
yarn add @react-native-executorch/expo-resource-fetcher
yarn add react-native-executorch-expo-resource-fetcher
yarn add expo-file-system expo-asset
```

and then add the following code in your React Native app:

```typescript
import { initExecutorch } from 'react-native-executorch';
import { ExpoResourceFetcher } from '@react-native-executorch/expo-resource-fetcher';
import { ExpoResourceFetcher } from 'react-native-executorch-expo-resource-fetcher';

initExecutorch({
resourceFetcher: ExpoResourceFetcher,
Expand All @@ -29,7 +29,7 @@ initExecutorch({
If you cannot use Expo in your project, proceed with the following steps:

```bash
yarn add @react-native-executorch/bare-resource-fetcher
yarn add react-native-executorch-bare-resource-fetcher
yarn add @dr.pogodin/react-native-fs @kesha-antonov/react-native-background-downloader
```

Expand Down
6 changes: 3 additions & 3 deletions packages/bare-resource-fetcher/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# @react-native-executorch/bare-resource-fetcher
# react-native-executorch-bare-resource-fetcher

Bare React Native adapter for `react-native-executorch` that provides resource fetching capabilities using native filesystem libraries.

## Installation

```bash
yarn add @react-native-executorch/bare-resource-fetcher
yarn add react-native-executorch-bare-resource-fetcher
yarn add @dr.pogodin/react-native-fs @kesha-antonov/react-native-background-downloader
```

Expand All @@ -22,7 +22,7 @@ After installing, follow the setup guides for the native dependencies:

```typescript
import { initExecutorch } from 'react-native-executorch';
import { BareResourceFetcher } from '@react-native-executorch/bare-resource-fetcher';
import { BareResourceFetcher } from 'react-native-executorch-bare-resource-fetcher';

initExecutorch({
resourceFetcher: BareResourceFetcher,
Expand Down
2 changes: 1 addition & 1 deletion packages/bare-resource-fetcher/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@react-native-executorch/bare-resource-fetcher",
"name": "react-native-executorch-bare-resource-fetcher",
"version": "0.8.0-rc1",
"description": "Bare React Native resource fetcher for react-native-executorch",
"main": "lib/index.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/expo-resource-fetcher/README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# @react-native-executorch/expo-resource-fetcher
# react-native-executorch-expo-resource-fetcher

Expo adapter for `react-native-executorch` that provides resource fetching capabilities using Expo's filesystem APIs.

## Installation

```bash
yarn add @react-native-executorch/expo-resource-fetcher
yarn add react-native-executorch-expo-resource-fetcher
yarn add expo-file-system expo-asset
```

## Usage

```typescript
import { initExecutorch } from 'react-native-executorch';
import { ExpoResourceFetcher } from '@react-native-executorch/expo-resource-fetcher';
import { ExpoResourceFetcher } from 'react-native-executorch-expo-resource-fetcher';

initExecutorch({
resourceFetcher: ExpoResourceFetcher,
Expand Down
2 changes: 1 addition & 1 deletion packages/expo-resource-fetcher/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@react-native-executorch/expo-resource-fetcher",
"name": "react-native-executorch-expo-resource-fetcher",
"version": "0.8.0-rc1",
"description": "Expo resource fetcher for react-native-executorch",
"main": "lib/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class ResourceFetcher {
if (!this.adapter) {
throw new RnExecutorchError(
RnExecutorchErrorCode.ResourceFetcherAdapterNotInitialized,
'ResourceFetcher adapter is not initialized. Please call initExecutorch({ resourceFetcher: ... }) with a valid adapter, e.g., from @react-native-executorch/expo-resource-fetcher or @react-native-executorch/bare-resource-fetcher. For more details please refer: https://docs.swmansion.com/react-native-executorch/docs/next/fundamentals/loading-models'
'ResourceFetcher adapter is not initialized. Please call initExecutorch({ resourceFetcher: ... }) with a valid adapter, e.g., from react-native-executorch-expo-resource-fetcher or react-native-executorch-bare-resource-fetcher. For more details please refer: https://docs.swmansion.com/react-native-executorch/docs/next/fundamentals/loading-models'
);
}
return this.adapter;
Expand Down
6 changes: 3 additions & 3 deletions readmes/README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ React Native ExecuTorch 为 [Private Mind](https://privatemind.swmansion.com/)
yarn add react-native-executorch

# 如果您使用 expo,请添加这些包用于资源获取:
yarn add @react-native-executorch/expo-resource-fetcher
yarn add react-native-executorch-expo-resource-fetcher
yarn add expo-file-system expo-asset

# 如果您使用原生 React Native 项目,请使用这些包:
yarn add @react-native-executorch/bare-resource-fetcher
yarn add react-native-executorch-bare-resource-fetcher
yarn add @dr.pogodin/react-native-fs @kesha-antonov/react-native-background-downloader

# 根据平台,选择 iOS 或 Android
Expand All @@ -100,7 +100,7 @@ import {
Message,
initExecutorch,
} from 'react-native-executorch';
import { ExpoResourceFetcher } from '@react-native-executorch/expo-resource-fetcher';
import { ExpoResourceFetcher } from 'react-native-executorch-expo-resource-fetcher';

initExecutorch({
resourceFetcher: ExpoResourceFetcher,
Expand Down
6 changes: 3 additions & 3 deletions readmes/README_es.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ React Native ExecuTorch impulsa [Private Mind](https://privatemind.swmansion.com
yarn add react-native-executorch

# Si usa expo, agregue estos paquetes para la obtención de recursos:
yarn add @react-native-executorch/expo-resource-fetcher
yarn add react-native-executorch-expo-resource-fetcher
yarn add expo-file-system expo-asset

# Si usa un proyecto básico de React Native, use estos paquetes:
yarn add @react-native-executorch/bare-resource-fetcher
yarn add react-native-executorch-bare-resource-fetcher
yarn add @dr.pogodin/react-native-fs @kesha-antonov/react-native-background-downloader

# Dependiendo de la plataforma, elige iOS o Android
Expand All @@ -100,7 +100,7 @@ import {
Message,
initExecutorch,
} from 'react-native-executorch';
import { ExpoResourceFetcher } from '@react-native-executorch/expo-resource-fetcher';
import { ExpoResourceFetcher } from 'react-native-executorch-expo-resource-fetcher';

initExecutorch({
resourceFetcher: ExpoResourceFetcher,
Expand Down
6 changes: 3 additions & 3 deletions readmes/README_fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ React Native ExecuTorch alimente [Private Mind](https://privatemind.swmansion.co
yarn add react-native-executorch

# Si vous utilisez expo, veuillez ajouter ces packages pour la récupération de ressources :
yarn add @react-native-executorch/expo-resource-fetcher
yarn add react-native-executorch-expo-resource-fetcher
yarn add expo-file-system expo-asset

# Si vous utilisez un projet React Native brut, utilisez ces packages :
yarn add @react-native-executorch/bare-resource-fetcher
yarn add react-native-executorch-bare-resource-fetcher
yarn add @dr.pogodin/react-native-fs @kesha-antonov/react-native-background-downloader

# Selon la plateforme, choisissez soit iOS soit Android
Expand All @@ -100,7 +100,7 @@ import {
Message,
initExecutorch,
} from 'react-native-executorch';
import { ExpoResourceFetcher } from '@react-native-executorch/expo-resource-fetcher';
import { ExpoResourceFetcher } from 'react-native-executorch-expo-resource-fetcher';

initExecutorch({
resourceFetcher: ExpoResourceFetcher,
Expand Down
6 changes: 3 additions & 3 deletions readmes/README_in.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ React Native ExecuTorch को [Private Mind](https://privatemind.swmansion.com/
yarn add react-native-executorch

# यदि आप expo का उपयोग करते हैं, तो कृपया संसाधन प्राप्त करने के लिए ये पैकेज जोड़ें:
yarn add @react-native-executorch/expo-resource-fetcher
yarn add react-native-executorch-expo-resource-fetcher
yarn add expo-file-system expo-asset

# यदि आप bare React Native प्रोजेक्ट का उपयोग करते हैं तो इन पैकेजों का उपयोग करें:
yarn add @react-native-executorch/bare-resource-fetcher
yarn add react-native-executorch-bare-resource-fetcher
yarn add @dr.pogodin/react-native-fs @kesha-antonov/react-native-background-downloader

# प्लेटफॉर्म के अनुसार, या तो iOS या Android चुनें
Expand All @@ -100,7 +100,7 @@ import {
Message,
initExecutorch,
} from 'react-native-executorch';
import { ExpoResourceFetcher } from '@react-native-executorch/expo-resource-fetcher';
import { ExpoResourceFetcher } from 'react-native-executorch-expo-resource-fetcher';

initExecutorch({
resourceFetcher: ExpoResourceFetcher,
Expand Down
6 changes: 3 additions & 3 deletions readmes/README_pt.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ React Native ExecuTorch está impulsionando o [Private Mind](https://privatemind
yarn add react-native-executorch

# Se você usa expo, adicione estes pacotes para busca de recursos:
yarn add @react-native-executorch/expo-resource-fetcher
yarn add react-native-executorch-expo-resource-fetcher
yarn add expo-file-system expo-asset

# Se você usa projeto React Native básico, use estes pacotes:
yarn add @react-native-executorch/bare-resource-fetcher
yarn add react-native-executorch-bare-resource-fetcher
yarn add @dr.pogodin/react-native-fs @kesha-antonov/react-native-background-downloader

# Dependendo da plataforma, escolha iOS ou Android
Expand All @@ -100,7 +100,7 @@ import {
Message,
initExecutorch,
} from 'react-native-executorch';
import { ExpoResourceFetcher } from '@react-native-executorch/expo-resource-fetcher';
import { ExpoResourceFetcher } from 'react-native-executorch-expo-resource-fetcher';

initExecutorch({
resourceFetcher: ExpoResourceFetcher,
Expand Down
Loading
Loading