Skip to content

v1.4.0-beta.4

@prescottprue prescottprue tagged this 03 Apr 04:40
* made use of [`hoist-non-react-statics`](https://github.com/mridgway/hoist-non-react-statics) (following pattern set forth in [`react-redux`'s connect](https://github.com/reactjs/react-redux/blob/master/src/components/connectAdvanced.js#L281)) to fix issue where statics where not being passed. For example, when using `StackNavigator` with react-native:

```js
@firebaseConnect() // <- was keeping statics from being passed
@connect(({ firebase }) => ({  // <- hoists statics
  auth: pathToJS(firebase, 'auth')
}))
export default class Home extends Component {
  static navigationOptions = {  // <- was not being passed to resulting wrapped component
    title: 'Some Title'
  }

  render () {
    return (
      <View>
        <Text>React Native + Firebase!</Text>
      </View>
    )
  }
}
```

* create your own react-native app instructions added to docs (including pictures)
* user and credential are now returned from login method (solves #106)
* `onRedirectResult` config option added (runs when redirect result occurs)
* Material-ui complete example updated to use field level validation
* Docs added for `onAuthStateChanged` and `onRedirectResult` config options
Assets 2
Loading