import { Dimensions } from 'react-native' ; import { config } from '../../constants/config' ; export class AtomSettingsDelegate { public getDefaultOriginPosition ( ) { const x = Dimensions . get ( 'window' ) . width / 2 ; const screenHeight = Dimensions . get ( 'window' ) . height ; const y = screenHeight - config . atom . bottomOffset - config . atom . outerShellDiameter / 2 - config . atom . particleSize / 2 ; return { x , y } ; } }