Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { ScrollView, View } from 'react-native';
import { Platform, ScrollView, View } from 'react-native';

/**
* WordPress dependencies
Expand Down Expand Up @@ -43,7 +43,13 @@ function HeaderToolbar( {
} ) {
const scrollViewRef = useRef( null );
const scrollToStart = () => {
scrollViewRef.current.scrollTo( { x: 0 } );
// scrollview doesn't seem to automatically adjust to RTL on Android so, scroll to end when Android
const isAndroid = Platform.OS === 'android';
if ( isAndroid && isRTL ) {
scrollViewRef.current.scrollToEnd();
} else {
scrollViewRef.current.scrollTo( { x: 0 } );
}
};
const renderHistoryButtons = () => {
const buttons = [
Expand Down
1 change: 1 addition & 0 deletions packages/react-native-editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ For each user feature we should also add a importance categorization label to i
- [**] [Embed block] Implement WP embed preview component [#34004]
- [*] [Embed block] Fix content disappearing on Android when switching light/dark mode [#34207]
- [*] Embed block: Add device's locale to preview content [#33858]
- [**] Fix Android-only issue of main toolbar initial position being wrong when RTL [#34617]

## 1.61.0
- [**] Enable embed preview for a list of providers (for now only YouTube and Twitter) [#34446]
Expand Down