mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove replaceAll from RNTester sample code (#48099)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48099 This is currently breaking the Sample Module screen on RN-Tester. Let's remove it. Changelog: [Internal] [Changed] - Remove replaceAll from RNTester sample code Reviewed By: cipolleschi Differential Revision: D66764656 fbshipit-source-id: acd123374d23b37977d5506f70f29da7f5d6311f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2f0977d8e4
commit
13900d75b8
@@ -63,7 +63,8 @@ function stringify(obj: mixed): string {
|
||||
return value;
|
||||
}
|
||||
|
||||
return (JSON.stringify(obj, replacer) || '').replaceAll('"', "'");
|
||||
// Change this to don't use replaceAll
|
||||
return (JSON.stringify(obj, replacer) || '').replace(/"/g, "'");
|
||||
}
|
||||
|
||||
class SampleLegacyModuleExample extends React.Component<{||}, State> {
|
||||
|
||||
Reference in New Issue
Block a user