Skip to content

Commit 7f69325

Browse files
p-sunfacebook-github-bot
authored andcommitted
(Easy) Remove usage of already-removed CrashyCrash from RNTester
Summary: `const {CrashyCrash} = NativeModules` makes all of RNTesterAppRoute render blank in Bridgeless. Remove this test example because the CrashyCrash has not existed since 2019, and no similar module exists in open source. [[github]](8ec7e09) Changelog: [Internal] Reviewed By: philIip Differential Revision: D33644122 fbshipit-source-id: ed10e8bf8ea9af9d5904afc2a7d9c2b3b3606978
1 parent b173bf3 commit 7f69325

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

packages/rn-tester/js/examples/Crash/CrashExample.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
*/
1010

1111
import type {Node} from 'React';
12-
import {NativeModules, Button} from 'react-native';
12+
import {Button} from 'react-native';
1313
import React from 'react';
1414

15-
const {CrashyCrash} = NativeModules;
16-
1715
exports.displayName = (undefined: ?string);
1816
exports.framework = 'React';
1917
exports.title = 'Crash';
@@ -36,17 +34,4 @@ exports.examples = [
3634
);
3735
},
3836
},
39-
{
40-
title: 'Native crash',
41-
render(): Node {
42-
return (
43-
<Button
44-
title="Native crash"
45-
onPress={() => {
46-
CrashyCrash.letsCrash();
47-
}}
48-
/>
49-
);
50-
},
51-
},
5237
];

0 commit comments

Comments
 (0)