Add scene creator
This commit is contained in:
parent
93b64cf474
commit
e7536289cb
18 changed files with 281 additions and 23 deletions
|
@ -13,7 +13,7 @@ import RootSiblings from 'react-native-root-siblings'
|
|||
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
|
||||
import {colors} from '../../lib/styles'
|
||||
import {useStores} from '../../../state'
|
||||
import {SharePostModel} from '../../../state/models/shell'
|
||||
import {SharePostModel} from '../../../state/models/shell-ui'
|
||||
|
||||
export interface DropdownItem {
|
||||
icon?: IconProp
|
||||
|
|
|
@ -5,9 +5,11 @@ import {colors} from '../../lib/styles'
|
|||
|
||||
export function ErrorMessage({
|
||||
message,
|
||||
numberOfLines,
|
||||
onPressTryAgain,
|
||||
}: {
|
||||
message: string
|
||||
numberOfLines?: number
|
||||
onPressTryAgain?: () => void
|
||||
}) {
|
||||
return (
|
||||
|
@ -19,7 +21,9 @@ export function ErrorMessage({
|
|||
size={16}
|
||||
/>
|
||||
</View>
|
||||
<Text style={styles.message}>{message}</Text>
|
||||
<Text style={styles.message} numberOfLines={numberOfLines}>
|
||||
{message}
|
||||
</Text>
|
||||
{onPressTryAgain && (
|
||||
<TouchableOpacity style={styles.btn} onPress={onPressTryAgain}>
|
||||
<FontAwesomeIcon
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react'
|
|||
import {observer} from 'mobx-react-lite'
|
||||
import {StyleProp, Text, TouchableOpacity, ViewStyle} from 'react-native'
|
||||
import {useStores} from '../../../state'
|
||||
import {LinkActionsModel} from '../../../state/models/shell'
|
||||
import {LinkActionsModel} from '../../../state/models/shell-ui'
|
||||
|
||||
export const Link = observer(function Link({
|
||||
style,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue