Skip to content

Kureev/react-native-uber-rides

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uber Rides SDK port to React Native

Uber Rides for React Native

Get Started

Prerequirements

  • xcode 8.0+
  • deployment target 8.0+

Installation steps

  1. $ rnpm install react-native-uber-rides
  2. Configure SDK
  3. Use it:
import {LoginButton, RideRequestButton} from 'react-native-uber-rides';
// ...
class Foo extends React.Component {
  render() {
    return (
      <View ...>
        <LoginButton
          onLogin={fn?}
          onLoginError={fn?}
          onLogout={fn?} />
        <RideRequestButton
          pickup={{latitude: 0.0, longitude: 0.0}}
          dropoff={{latitude: 1.0, longitude: 1.0}} />
      </View>
    );
  }
}

About

🚗 React Native port for Uber Rides SDK

Resources

Stars

Watchers

Forks

Packages

No packages published