Skip to content

Commit bc66fe7

Browse files
authored
Merge pull request #3023 from StoDevX/calendar-selectable
use SelectableCell in Calendar
2 parents ca6981c + bd69b31 commit bc66fe7

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

source/views/calendar/event-detail.ios.js

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
// @flow
22
import * as React from 'react'
3-
import {Text, ScrollView, StyleSheet} from 'react-native'
4-
import {Cell, Section, TableView, ButtonCell} from '@frogpond/tableview'
3+
import {ScrollView} from 'react-native'
4+
import {
5+
Cell,
6+
Section,
7+
TableView,
8+
ButtonCell,
9+
SelectableCell,
10+
} from '@frogpond/tableview'
511
import type {EventType, PoweredBy} from './types'
612
import type {TopLevelViewPropsType} from '../types'
713
import {ShareButton} from '../../components/nav-buttons'
@@ -10,22 +16,10 @@ import {ListFooter} from '@frogpond/lists'
1016
import {shareEvent, getTimes} from './calendar-util'
1117
import {AddToCalendar} from '../../components/add-to-calendar'
1218

13-
const styles = StyleSheet.create({
14-
chunk: {
15-
paddingVertical: 10,
16-
},
17-
})
18-
1919
function MaybeSection({header, content}: {header: string, content: string}) {
2020
return content.trim() ? (
2121
<Section header={header}>
22-
<Cell
23-
cellContentView={
24-
<Text selectable={true} style={styles.chunk}>
25-
{content}
26-
</Text>
27-
}
28-
/>
22+
<SelectableCell text={content} />
2923
</Section>
3024
) : null
3125
}

0 commit comments

Comments
 (0)