MCPcopy Create free account
hub / github.com/callstack/react-native-paper / _handleToggleRTL

Function _handleToggleRTL

example/src/DrawerItems.tsx:122–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 } = preferences;
121
122 const _handleToggleRTL = () => {
123 if (expoGoExecution) {
124 setShowRTLDialog(true);
125 return;
126 }
127
128 toggleRTL();
129 I18nManager.forceRTL(!isRTL);
130 if (isWeb) {
131 Updates.reloadAsync();
132 }
133 };
134
135 const _handleDismissRTLDialog = () => {
136 setShowRTLDialog(false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…