Skip to content

Commit

Permalink
Inji-409: debugging setup fix (#893)
Browse files Browse the repository at this point in the history
* feat(inji-400): update package-lock.json

* feat(inji-400): move flipper config to separate file from app.ts
  • Loading branch information
tilak-puli authored Oct 5, 2023
1 parent b0b69ee commit d206d94
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 53 deletions.
9 changes: 1 addition & 8 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,8 @@ import {MessageOverlay} from './components/MessageOverlay';
import SecureKeystore from 'react-native-secure-keystore';
import {isCustomSecureKeystore} from './shared/cryptoutil/cryptoUtil';
import i18n from './i18n';
import mmkvFlipper from 'rn-mmkv-storage-flipper';
import {MMKV} from './shared/storage';
import {inspect} from 'react-native-flipper-xstate';
import './shared/flipperConfig';

// add this line inside your App.tsx
if (__DEV__) {
mmkvFlipper(MMKV);
inspect();
}
// kludge: this is a bad practice but has been done temporarily to surface
// an occurance of a bug with minimal residual code changes, this should
// be removed once the bug cause is determined & fixed, ref: INJI-222
Expand Down
45 changes: 0 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions shared/flipperConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import mmkvFlipper from 'rn-mmkv-storage-flipper';
import {MMKV} from './storage';
import {inspect} from 'react-native-flipper-xstate';

if (__DEV__) {
mmkvFlipper(MMKV);
inspect();
}

0 comments on commit d206d94

Please sign in to comment.