Skip to content

Commit 02a52fa

Browse files
exporting types
1 parent 1d3d287 commit 02a52fa

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

plugins/node/instrumentation-react-native-navigation/src/components/NativeNavigationTracker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import { forwardRef, ReactNode } from 'react';
16+
import React, { forwardRef, ReactNode } from 'react';
1717
import { TracerProvider } from '@opentelemetry/api';
1818

1919
import useTracerRef from '../utils/hooks/useTracerRef';
@@ -44,5 +44,5 @@ const NativeNavigationTracker = forwardRef<
4444
});
4545

4646
NativeNavigationTracker.displayName = 'NativeNavigationTracker';
47-
export default NativeNavigationTracker;
47+
export { NativeNavigationTracker };
4848
export type { NativeNavigationTrackerRef };

plugins/node/instrumentation-react-native-navigation/src/components/NavigationTracker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import { forwardRef, ReactNode } from 'react';
16+
import React, { forwardRef, ReactNode } from 'react';
1717
import { TracerProvider } from '@opentelemetry/api';
1818

1919
import useTracerRef from '../utils/hooks/useTracerRef';
@@ -43,5 +43,5 @@ const NavigationTracker = forwardRef<
4343

4444
NavigationTracker.displayName = 'NavigationTracker';
4545

46-
export default NavigationTracker;
46+
export { NavigationTracker };
4747
export type { NavigationTrackerRef };

plugins/node/instrumentation-react-native-navigation/src/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,5 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import NativeNavigationTracker from './components/NativeNavigationTracker';
17-
import NavigationTracker from './components/NavigationTracker';
18-
19-
export { NativeNavigationTracker, NavigationTracker };
16+
export * from './components/NativeNavigationTracker';
17+
export * from './components/NavigationTracker';

0 commit comments

Comments
 (0)