Merge branch 'bluesky-social:main' into patch-3
This commit is contained in:
+3
-1
@@ -40,6 +40,8 @@ module.exports = function (config) {
|
|||||||
? process.env.BSKY_ANDROID_VERSION_CODE
|
? process.env.BSKY_ANDROID_VERSION_CODE
|
||||||
: process.env.BSKY_IOS_BUILD_NUMBER
|
: process.env.BSKY_IOS_BUILD_NUMBER
|
||||||
|
|
||||||
|
const IS_DEV = process.env.EXPO_PUBLIC_ENV === 'development'
|
||||||
|
|
||||||
return {
|
return {
|
||||||
expo: {
|
expo: {
|
||||||
version: VERSION,
|
version: VERSION,
|
||||||
@@ -103,7 +105,7 @@ module.exports = function (config) {
|
|||||||
scheme: 'https',
|
scheme: 'https',
|
||||||
host: 'bsky.app',
|
host: 'bsky.app',
|
||||||
},
|
},
|
||||||
{
|
IS_DEV && {
|
||||||
scheme: 'http',
|
scheme: 'http',
|
||||||
host: 'localhost:19006',
|
host: 'localhost:19006',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {Text as RNText, TextStyle, TextProps as RNTextProps} from 'react-native'
|
|||||||
import {UITextView} from 'react-native-ui-text-view'
|
import {UITextView} from 'react-native-ui-text-view'
|
||||||
|
|
||||||
import {useTheme, atoms, web, flatten} from '#/alf'
|
import {useTheme, atoms, web, flatten} from '#/alf'
|
||||||
import {isIOS} from '#/platform/detection'
|
import {isIOS, isNative} from '#/platform/detection'
|
||||||
|
|
||||||
export type TextProps = RNTextProps & {
|
export type TextProps = RNTextProps & {
|
||||||
/**
|
/**
|
||||||
@@ -40,11 +40,11 @@ function normalizeTextStyles(styles: TextStyle[]) {
|
|||||||
const fontSize = s.fontSize || atoms.text_md.fontSize
|
const fontSize = s.fontSize || atoms.text_md.fontSize
|
||||||
|
|
||||||
if (s?.lineHeight) {
|
if (s?.lineHeight) {
|
||||||
if (s.lineHeight <= 2) {
|
if (s.lineHeight !== 0 && s.lineHeight <= 2) {
|
||||||
s.lineHeight = Math.round(fontSize * s.lineHeight)
|
s.lineHeight = Math.round(fontSize * s.lineHeight)
|
||||||
}
|
}
|
||||||
} else {
|
} else if (!isNative) {
|
||||||
s.lineHeight = fontSize
|
s.lineHeight = s.fontSize
|
||||||
}
|
}
|
||||||
|
|
||||||
return s
|
return s
|
||||||
|
|||||||
+2
-2
@@ -12,9 +12,9 @@ import {Share} from 'react-native'
|
|||||||
*/
|
*/
|
||||||
export async function shareUrl(url: string) {
|
export async function shareUrl(url: string) {
|
||||||
if (isAndroid) {
|
if (isAndroid) {
|
||||||
Share.share({message: url})
|
await Share.share({message: url})
|
||||||
} else if (isIOS) {
|
} else if (isIOS) {
|
||||||
Share.share({url})
|
await Share.share({url})
|
||||||
} else {
|
} else {
|
||||||
// React Native Share is not supported by web. Web Share API
|
// React Native Share is not supported by web. Web Share API
|
||||||
// has increasing but not full support, so default to clipboard
|
// has increasing but not full support, so default to clipboard
|
||||||
|
|||||||
+263
-184
File diff suppressed because it is too large
Load Diff
+262
-183
File diff suppressed because it is too large
Load Diff
+262
-183
File diff suppressed because it is too large
Load Diff
+262
-183
File diff suppressed because it is too large
Load Diff
+263
-184
File diff suppressed because it is too large
Load Diff
+262
-183
File diff suppressed because it is too large
Load Diff
+263
-184
File diff suppressed because it is too large
Load Diff
+263
-184
File diff suppressed because it is too large
Load Diff
+263
-184
File diff suppressed because it is too large
Load Diff
+263
-184
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+262
-183
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -238,13 +238,14 @@ function FeedCardInner({feed}: {feed: FeedSourceInfo; config: FeedConfig}) {
|
|||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<View style={[a.pt_2xs, a.flex_grow]}>
|
<View style={[a.pt_2xs, a.flex_1, a.flex_grow]}>
|
||||||
<Text
|
<Text
|
||||||
style={[
|
style={[
|
||||||
a.text_md,
|
a.text_md,
|
||||||
a.font_bold,
|
a.font_bold,
|
||||||
ctx.selected && styles.textSelected,
|
ctx.selected && styles.textSelected,
|
||||||
]}>
|
]}
|
||||||
|
numberOfLines={1}>
|
||||||
{feed.displayName}
|
{feed.displayName}
|
||||||
</Text>
|
</Text>
|
||||||
<Text
|
<Text
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ const styles = StyleSheet.create({
|
|||||||
btn: {
|
btn: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
|
flexGrow: 1,
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
borderLeftWidth: 0,
|
borderLeftWidth: 0,
|
||||||
paddingHorizontal: 10,
|
paddingHorizontal: 10,
|
||||||
|
|||||||
Reference in New Issue
Block a user