React Native UBER Rides Estimates
React Native Higher Order Component to get Uber Rides Estimates
UBER Rides SDK Native Solution. Please refer to React Native UBER Rides for native solution.
This is not the wrapper forInstall
npm install react-native-uber-rides-estimates
How to use
; ; ; { return <View style=stylescontainer> <UberButton clientId="your.uber.client.id" serverToken="your.uber.server.token" > { if uberRidesloading return <ActivityIndicator />; if uberRidespriceEstimate return <Text> JSON </Text> ; if uberRidestimeEstimate return <Text> JSON </Text> ; return <TouchableOpacity onPress= uberRides > <View> <Text>Ride with UBER</Text> </View> </TouchableOpacity> ; } </UberButton> </View> ; } const styles = StyleSheet; AppRegistry;
API
documentation coming soon