Use createStackNavigator instead.
Please see the Contributors Guide for instructions on running these example apps.