Skip to content

Commit

Permalink
Merge pull request #26 from 10play/fix-keyboard-imports
Browse files Browse the repository at this point in the history
Fix Keyboard Exports
  • Loading branch information
17Amir17 authored Feb 7, 2024
2 parents a71b949 + fbdd716 commit cf8fc2f
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 11 deletions.
10 changes: 7 additions & 3 deletions example/src/Examples/Basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ import {
Platform,
StyleSheet,
} from 'react-native';
import { RichText, Toolbar, useEditorBridge } from '@10play/tentap-editor';
import { ColorKeyboard } from '../../../src/RichText/Keyboard/ColorKeyboard';
import { CustomKeyboard } from '../../../src/RichText/Keyboard';
import {
RichText,
Toolbar,
useEditorBridge,
ColorKeyboard,
CustomKeyboard,
} from '@10play/tentap-editor';

const exampleStyles = StyleSheet.create({
fullScreen: {
Expand Down
3 changes: 1 addition & 2 deletions example/src/Examples/Compose/ComposeRichText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import {
StyleSheet,
TouchableOpacity,
} from 'react-native';
import { CustomKeyboard, ColorKeyboard } from '@10play/tentap-editor';
import { RichText, useBridgeState } from '../../../../src/RichText';
import { CustomKeyboard } from '../../../../src/RichText/Keyboard';
import { ColorKeyboard } from '../../../../src/RichText/Keyboard/ColorKeyboard';
import type { EditorBridge } from '../../../../src/types';
import { icons } from '../../assets';
import { Icon } from '../Icon';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { CustomKeyboardExtension } from '@10play/tentap-editor';
import { Image, StyleSheet, View } from 'react-native';
import { CustomKeyboardExtension } from '../../../../src/RichText/Keyboard/CustomKeyboardExtension';
import { Images } from '../../../../src/assets';

const keyboardStyles = StyleSheet.create({
Expand Down
2 changes: 1 addition & 1 deletion example/src/Examples/CustomKeyboardExample/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
useEditorBridge,
type ToolbarItem,
} from '@10play/tentap-editor';
import { CustomKeyboard } from '../../../../src/RichText/Keyboard';
import { CustomKeyboard } from '../../../../src/RichText/Keyboard/CustomKeyboardBase';
import { StickerKeyboard } from './StickerKeyboard';
import { Images } from '../../../../src/assets';

Expand Down
10 changes: 7 additions & 3 deletions example/src/Examples/EditorStickToKeyboardExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ import {
Text,
ScrollView,
} from 'react-native';
import { RichText, Toolbar, useEditorBridge } from '@10play/tentap-editor';
import { CustomKeyboard } from '../../../src/RichText/Keyboard';
import { ColorKeyboard } from '../../../src/RichText/Keyboard/ColorKeyboard';
import {
RichText,
Toolbar,
useEditorBridge,
CustomKeyboard,
ColorKeyboard,
} from '@10play/tentap-editor';
import WebView from 'react-native-webview';

const exampleStyles = StyleSheet.create({
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions src/RichText/Keyboard/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export { CustomKeyboard } from './CustomKeyboardBase';
export { ColorKeyboard } from './ColorKeyboard';
export { CustomKeyboardExtension } from './CustomKeyboardExtension';
2 changes: 1 addition & 1 deletion src/RichText/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export * from './RichText';
export * from './useEditorBridge';
export * from './useBridgeState';
export * from './Toolbar';
export * from './Keyboard/CustomKeyboard.ios';
export * from './Keyboard';

0 comments on commit cf8fc2f

Please sign in to comment.