Skip to content

Commit

Permalink
(Easy) Remove usage of already-removed CrashyCrash from RNTester
Browse files Browse the repository at this point in the history
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
  • Loading branch information
p-sun authored and facebook-github-bot committed Jan 19, 2022
1 parent b173bf3 commit 7f69325
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions packages/rn-tester/js/examples/Crash/CrashExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
*/

import type {Node} from 'React';
import {NativeModules, Button} from 'react-native';
import {Button} from 'react-native';
import React from 'react';

const {CrashyCrash} = NativeModules;

exports.displayName = (undefined: ?string);
exports.framework = 'React';
exports.title = 'Crash';
Expand All @@ -36,17 +34,4 @@ exports.examples = [
);
},
},
{
title: 'Native crash',
render(): Node {
return (
<Button
title="Native crash"
onPress={() => {
CrashyCrash.letsCrash();
}}
/>
);
},
},
];

0 comments on commit 7f69325

Please sign in to comment.