diff --git a/src/index.tsx b/src/index.tsx index fdb5fe4..83d46e4 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,22 +1,25 @@ -import { NativeModules, Platform } from 'react-native'; +// import { NativeModules, Platform } from 'react-native'; -const LINKING_ERROR = - `The package 'react-native-server-component' doesn't seem to be linked. Make sure: \n\n` + - Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) + - '- You rebuilt the app after installing the package\n' + - '- You are not using Expo Go\n'; +// const LINKING_ERROR = +// `The package 'react-native-server-component' doesn't seem to be linked. Make sure: \n\n` + +// Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) + +// '- You rebuilt the app after installing the package\n' + +// '- You are not using Expo Go\n'; -const ServerComponent = NativeModules.ServerComponent - ? NativeModules.ServerComponent - : new Proxy( - {}, - { - get() { - throw new Error(LINKING_ERROR); - }, - } - ); +// const ServerComponent = NativeModules.ServerComponent +// ? NativeModules.ServerComponent +// : new Proxy( +// {}, +// { +// get() { +// throw new Error(LINKING_ERROR); +// }, +// } +// ); -export function multiply(a: number, b: number): Promise { - return ServerComponent.multiply(a, b); -} +// export function multiply(a: number, b: number): Promise { +// return ServerComponent.multiply(a, b); +// } + +export * from './@types'; +export * from './component';