Skip to content

Commit e4dfbde

Browse files
committed
chore: debug NativeModules
1 parent a258381 commit e4dfbde

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/NativeBigNumber/NativeBigNumber.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { NativeModules, Platform } from 'react-native';
22

3-
console.log('NativeModules', NativeModules);
4-
53
export interface InternalNumber {}
64

75
export interface InternalRedNumber extends InternalNumber {
@@ -176,6 +174,7 @@ declare global {
176174
if (global.__BigNumberProxy == null) {
177175
// Get the native BigNumber ReactModule
178176
const BigNumberModule = NativeModules.BigNumber;
177+
console.log('BigNumberModule', BigNumberModule);
179178
if (BigNumberModule == null) {
180179
let message =
181180
'Failed to install react-native-bignumber: The native `BigNumber` Module could not be found.';
@@ -233,5 +232,4 @@ const native = {} as any;
233232
Object.keys(proxy).forEach((key: string) => {
234233
native[key] = proxy[key];
235234
});
236-
console.log('native', native);
237235
export const NativeBigNumber = native as NativeBigNumberSpec;

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export * from './BigNumber';
22

33
import BN from './BigNumber';
4+
export default BN;
45
module.exports = BN;

0 commit comments

Comments
 (0)