Skip to content

Commit

Permalink
fix(example): fix imports with new package name
Browse files Browse the repository at this point in the history
  • Loading branch information
pierpo committed Jul 7, 2023
1 parent c2c72c4 commit 3bd2c6d
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 33 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"scripts": {
"test:types": "yarn workspaces foreach run test:types",
"test:lint": "eslint . --ext .js,.jsx,.ts,.tsx --report-unused-disable-directives --max-warnings 0 --cache --cache-strategy content --cache-location .cache/eslint.json",
"build:core": "yarn workspace @react-spatial-navigation/core build",
"build:core": "yarn workspace react-native-tv-spatial-navigation build",
"start:example": "yarn workspace @react-spatial-navigation/example start"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
SpatialNavigationRoot,
SpatialNavigationScrollView,
SpatialNavigationView,
} from '@react-spatial-navigation/core/src';
} from 'react-native-tv-spatial-navigation/src';
import {Program} from './Program';
import {StyleSheet} from 'react-native';
import './configureKeyboard';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import KeyEvent from 'react-native-keyevent';
import {
Directions,
SpatialNavigation,
} from '@react-spatial-navigation/core/src';
} from 'react-native-tv-spatial-navigation/src';

SpatialNavigation.configureKeyboard({
keyboardSubscriber: callback => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {TVEventHandler} from 'react-native';
import {
Directions,
SpatialNavigation,
} from '@react-spatial-navigation/core/src';
} from 'react-native-tv-spatial-navigation/src';

SpatialNavigation.configureKeyboard({
keyboardSubscriber: callback => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
Directions,
SpatialNavigation,
} from '@react-spatial-navigation/core/src';
} from 'react-native-tv-spatial-navigation/src';

SpatialNavigation.configureKeyboard({
keyboardSubscriber: callback => {
Expand Down
2 changes: 1 addition & 1 deletion packages/rabbit-tv-with-rn-tvos/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"paths": {
"@react-spatial-navigation/core": ["../core/src/*"]
"react-native-tv-spatial-navigation": ["../core/src/*"]
}
},
"include": [
Expand Down
38 changes: 11 additions & 27 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2768,33 +2768,6 @@ __metadata:
languageName: node
linkType: hard

"@react-spatial-navigation/core@*, @react-spatial-navigation/core@workspace:packages/core":
version: 0.0.0-use.local
resolution: "@react-spatial-navigation/core@workspace:packages/core"
dependencies:
typescript: ^5.1.6
webpack: ^5.88.1
webpack-cli: ^5.1.4
webpack-dev-server: ^4.15.1
languageName: unknown
linkType: soft

"@react-spatial-navigation/example@workspace:packages/example":
version: 0.0.0-use.local
resolution: "@react-spatial-navigation/example@workspace:packages/example"
dependencies:
"@react-spatial-navigation/core": "*"
babel-plugin-react-native-web: ^0.19.6
file-loader: ^6.2.0
react: ^18.2.0
react-dom: ^18.2.0
typescript: ^5.1.6
webpack: ^5.88.1
webpack-cli: ^5.1.4
webpack-dev-server: ^4.15.1
languageName: unknown
linkType: soft

"@sideway/address@npm:^4.1.3":
version: 4.1.4
resolution: "@sideway/address@npm:4.1.4"
Expand Down Expand Up @@ -10571,6 +10544,17 @@ __metadata:
languageName: node
linkType: hard

"react-native-tv-spatial-navigation@workspace:packages/core":
version: 0.0.0-use.local
resolution: "react-native-tv-spatial-navigation@workspace:packages/core"
dependencies:
typescript: ^5.1.6
webpack: ^5.88.1
webpack-cli: ^5.1.4
webpack-dev-server: ^4.15.1
languageName: unknown
linkType: soft

"react-native-web@npm:^0.19.6":
version: 0.19.6
resolution: "react-native-web@npm:0.19.6"
Expand Down

0 comments on commit 3bd2c6d

Please sign in to comment.