File tree Expand file tree Collapse file tree 6 files changed +12
-20
lines changed
Expand file tree Collapse file tree 6 files changed +12
-20
lines changed Original file line number Diff line number Diff line change 11import { LinearGradient } from 'expo-linear-gradient' ;
22import React , { useMemo } from 'react' ;
3- import { Platform , StyleSheet , View } from 'react-native' ;
3+ import { StyleSheet , View } from 'react-native' ;
44import { STATION_NAME_FONT_SIZE } from '../constants' ;
55import { useLoopLine } from '../hooks' ;
66import isTablet from '../utils/isTablet' ;
@@ -220,7 +220,7 @@ const HeaderE235: React.FC<HeaderE235Props> = (props) => {
220220 threeLetterCode = { threeLetterCode }
221221 withDarkTheme
222222 allowScaling
223- transformOrigin = { Platform . OS === 'android' ? ' bottom' : undefined }
223+ transformOrigin = " bottom"
224224 />
225225 ) : null }
226226 < Typography
Original file line number Diff line number Diff line change 11import { LinearGradient } from 'expo-linear-gradient' ;
22import React , { useMemo } from 'react' ;
3- import { Platform , StyleSheet , View } from 'react-native' ;
3+ import { StyleSheet , View } from 'react-native' ;
44import Svg , { Path } from 'react-native-svg' ;
55import { useLoopLine } from '~/hooks' ;
66import { STATION_NAME_FONT_SIZE } from '../constants' ;
@@ -223,7 +223,7 @@ const HeaderJL: React.FC<CommonHeaderProps> = (props) => {
223223 threeLetterCode = { threeLetterCode }
224224 withDarkTheme
225225 allowScaling
226- transformOrigin = { Platform . OS === 'android' ? ' bottom' : undefined }
226+ transformOrigin = " bottom"
227227 />
228228 ) : null }
229229 < Typography
Original file line number Diff line number Diff line change 22import { Image } from 'expo-image' ;
33import { LinearGradient } from 'expo-linear-gradient' ;
44import React , { useCallback , useMemo } from 'react' ;
5- import { Platform , StyleSheet , View } from 'react-native' ;
5+ import { StyleSheet , View } from 'react-native' ;
66import { LineType , TrainTypeKind } from '~/@types/graphql' ;
77import { useGetLineMark } from '~/hooks' ;
88import {
@@ -511,9 +511,7 @@ const HeaderJRWest: React.FC<CommonHeaderProps> = (props) => {
511511 threeLetterCode = { threeLetterCode }
512512 withDarkTheme
513513 allowScaling
514- transformOrigin = {
515- Platform . OS === 'android' ? 'bottom' : undefined
516- }
514+ transformOrigin = "bottom"
517515 />
518516 </ View >
519517 ) : null }
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ const HeaderSaikyo: React.FC<CommonHeaderProps> = (props) => {
225225 stationNumber = { currentStationNumber . stationNumber || '' }
226226 threeLetterCode = { threeLetterCode }
227227 allowScaling
228- transformOrigin = { Platform . OS === 'android' ? ' bottom' : undefined }
228+ transformOrigin = " bottom"
229229 />
230230 ) : null }
231231 < View style = { styles . stationNameWrapper } >
Original file line number Diff line number Diff line change 11import { LinearGradient } from 'expo-linear-gradient' ;
22import React from 'react' ;
3- import {
4- Platform ,
5- StyleSheet ,
6- Text ,
7- useWindowDimensions ,
8- View ,
9- } from 'react-native' ;
3+ import { StyleSheet , Text , useWindowDimensions , View } from 'react-native' ;
104import Animated from 'react-native-reanimated' ;
115import { STATION_NAME_FONT_SIZE } from '../constants' ;
126import { useHeaderAnimation } from '../hooks' ;
@@ -225,7 +219,7 @@ const HeaderTY: React.FC<CommonHeaderProps> = (props) => {
225219 stationNumber = { currentStationNumber . stationNumber || '' }
226220 threeLetterCode = { threeLetterCode }
227221 allowScaling
228- transformOrigin = { Platform . OS === 'android' ? ' bottom' : undefined }
222+ transformOrigin = " bottom"
229223 withDarkTheme
230224 />
231225 ) : null }
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ const NumberingIconSquare: React.FC<Props> = ({
131131 threeLetterCode,
132132 allowScaling,
133133 size,
134- transformOrigin = Platform . OS === 'android' ? ' center' : 'bottom ',
134+ transformOrigin = ' center',
135135 withOutline,
136136} : Props ) => {
137137 const [ lineSymbol , ...stationNumberRest ] = stationNumberRaw . split ( '-' ) ;
@@ -143,7 +143,7 @@ const NumberingIconSquare: React.FC<Props> = ({
143143 style = { [
144144 styles . tlcRoot ,
145145 {
146- transformOrigin : transformOrigin ,
146+ transformOrigin,
147147 } ,
148148 ] }
149149 >
@@ -178,7 +178,7 @@ const NumberingIconSquare: React.FC<Props> = ({
178178 style = {
179179 allowScaling && {
180180 transform : [ { scale : 0.8 } ] ,
181- transformOrigin : 'bottom' ,
181+ transformOrigin,
182182 paddingVertical : isTablet ? 8 : 4 ,
183183 paddingHorizontal : isTablet ? 8 : 4 ,
184184 }
You can’t perform that action at this time.
0 commit comments