This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android" | |
android:duration="@integer/anim_duration_long"> | |
<translate | |
android:interpolator="@android:anim/decelerate_interpolator" | |
android:fromXDelta="100%p" | |
android:toXDelta="0" | |
/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import and add to your Editor's plugins | |
import { RichUtils } from 'draft-js'; | |
const HEADING = 'header-one'; | |
export default () => ({ | |
onChange: (editorState) => { | |
const currentContent = editorState.getCurrentContent(); | |
const firstBlockKey = currentContent.getBlockMap().first().getKey(); |