Skip to content

Commit 1731721

Browse files
authored
feat: upgrade to latest react native (#882)
1 parent c32d43d commit 1731721

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export const FALLBACK_BOB_VERSION = '0.40.8';
2-
export const FALLBACK_NITRO_MODULES_VERSION = '0.26.2';
3-
export const SUPPORTED_REACT_NATIVE_VERSION = '0.79.2';
1+
export const FALLBACK_BOB_VERSION = '0.40.13';
2+
export const FALLBACK_NITRO_MODULES_VERSION = '0.28.1';
3+
export const SUPPORTED_REACT_NATIVE_VERSION = '0.81.0';

packages/create-react-native-library/templates/common/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
},
77
"allowUnreachableCode": false,
88
"allowUnusedLabels": false,
9+
"customConditions": ["react-native-strict-api"],
910
"esModuleInterop": true,
1011
"forceConsistentCasingInFileNames": true,
1112
"jsx": "react-jsx",

packages/create-react-native-library/templates/native-library-new/src/Native{%- project.name %}.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import type { TurboModule } from 'react-native';
2-
import { TurboModuleRegistry } from 'react-native';
1+
import { TurboModuleRegistry, type TurboModule } from 'react-native';
32

43
export interface Spec extends TurboModule {
54
multiply(a: number, b: number): number;

packages/create-react-native-library/templates/native-view-new/src/{%- project.name %}ViewNativeComponent.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
2-
import type { ViewProps } from 'react-native';
1+
import { codegenNativeComponent, type ViewProps } from 'react-native';
32

43
interface NativeProps extends ViewProps {
54
color?: string;

0 commit comments

Comments
 (0)