const { pathOr , is } = require ( 'ramda' ) ; const REACT_NATIVE_VERSION = '0.51.0' ; const pathToVersion = [ 'parameters' , 'options' , 'react-native-version' ] ; const getVersionFromContext = pathOr ( REACT_NATIVE_VERSION , pathToVersion ) ; param { * } context const getReactNativeVersion = ( context = { } ) => { const version = getVersionFromContext ( context ) ; return is ( String , version ) ? version : REACT_NATIVE_VERSION ; } ; module . exports = { REACT_NATIVE_VERSION , getReactNativeVersion } ;