Skip to content

Commit

Permalink
Revert "Merge pull request #29744 from software-mansion-labs/ts-migra…
Browse files Browse the repository at this point in the history
…tion/custom-dev-menu-component"

This reverts commit f7d11ab, reversing
changes made to 630b722.
  • Loading branch information
mountiny committed Nov 28, 2023
1 parent 679d770 commit 23bfbf9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 31 deletions.
5 changes: 5 additions & 0 deletions src/components/CustomDevMenu/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const CustomDevMenu = () => {};

CustomDevMenu.displayName = 'CustomDevMenu';

export default CustomDevMenu;
15 changes: 15 additions & 0 deletions src/components/CustomDevMenu/index.native.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {useEffect} from 'react';
import DevMenu from 'react-native-dev-menu';
import toggleTestToolsModal from '@userActions/TestTool';

function CustomDevMenu() {
useEffect(() => {
DevMenu.addItem('Open Test Preferences', toggleTestToolsModal);
}, []);

return null;
}

CustomDevMenu.displayName = 'CustomDevMenu';

export default CustomDevMenu;
18 changes: 0 additions & 18 deletions src/components/CustomDevMenu/index.native.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions src/components/CustomDevMenu/index.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/CustomDevMenu/types.ts

This file was deleted.

0 comments on commit 23bfbf9

Please sign in to comment.