TypeError: undefined is no a function (near '... CombineLastest.combineLastest...) in React-native
See original GitHub issue
just i uses the “WithObservables” in one Component
this is my package:
“dependencies”: { “@nozbe/watermelondb”: “^0.15.0”, “@nozbe/with-observables”: “^1.0.5”, “@react-native-community/masked-view”: “^0.1.6”, “@react-navigation/bottom-tabs”: “^5.0.5”, “@react-navigation/native”: “^5.0.3”, “@react-navigation/stack”: “^5.0.3”, “react”: “16.9.0”, “react-native”: “0.61.5”, “react-native-gesture-handler”: “^1.5.6”, “react-native-reanimated”: “^1.7.0”, “react-native-safe-area-context”: “^0.7.3”, “react-native-screens”: “^2.0.0-beta.2”, “recompose”: “^0.30.0” }, “devDependencies”: { “@babel/core”: “^7.6.2”, “@babel/plugin-proposal-decorators”: “^7.8.3”, “@babel/runtime”: “^7.6.2”, “@react-native-community/eslint-config”: “^0.0.5”, “@types/jest”: “^24.0.24”, “@types/react-native”: “^0.60.25”, “@types/react-test-renderer”: “16.9.1”, “@typescript-eslint/eslint-plugin”: “^2.12.0”, “@typescript-eslint/parser”: “^2.12.0”, “babel-jest”: “^24.9.0”, “eslint”: “^6.5.1”, “jest”: “^24.9.0”, “metro-react-native-babel-preset”: “^0.56.0”, “react-test-renderer”: “16.9.0”, “typescript”: “^3.7.3”
this is the component where i use
import React from ‘react’ import { SafeAreaView, StyleSheet, ScrollView, View, Text, StatusBar, } from ‘react-native’; import withObservables from ‘@nozbe/with-observables’ type homeProps = { database?: any, user?: any, name?: string, Mensaje?: string } function Home(props: homeProps) { console.log(
Componente home ${props.Mensaje}) return ( <View> <Text>Holaaaaa</Text> <Text>{props.name}</Text> <Text>{props.Mensaje}</Text> </View> ) } const enhance = withObservables([‘Mensaje’], ({ Mensaje }) => { Mensaje }) const EnhancedHome = enhance(Home) export default EnhancedHome;
Really pls HelpMe
Regards
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)

Top Related StackOverflow Question
I am getting this error as well when trying to make multiple observations in one component. Digging into with-observables.cjs.js (line 53) combineLatest is undefined (it skips combineLatest when only one prop is observed).
This seems related to the breaking import changes to rxjs multiple people seem to be having (refer to PR #66 in with-observables: https://github.com/Nozbe/withObservables/pull/66
Hi again.
Works!!. just i tried over and over again. I was using it wrong the “WithObservable”
thanks a lot
regards!