BlueBaseJS / BlueBaseJS/cli

[Storybook-Native] undefined is not an object (evaluating '_expo.KeepAwake.activate')

Aperta
#104 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
1
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Description

While running storybook-native `undefined is not an object (evaluating '_expo.KeepAwake.activate')` issue appears

## Expected Behavior

`bluebase storybook-native:start` should run successfully.

## Actual Behavior

![keep](https://user-images.githubusercontent.com/30393332/66459992-7b37fb00-ea8f-11e9-9243-766d87a0854a.png)

## Possible Fix

This issue is created due to storybook-native AppEntry.js its content should be,

```
import App from './../../bluebase/storybook-native/storybook';
import { activateKeepAwake } from 'expo-keep-awake';
import { registerRootComponent } from 'expo';

if (__DEV__) {
activateKeepAwake();
}

registerRootComponent(App);
```

## Steps to Reproduce

1. create a plugin
2. `bluebase storybook-native:init`
3. `bluebase storybook-native:start`

## Context

## Screenshots

## Your Environment

* Version used: `0.0.16`
* Environment name and version (e.g. Chrome 39, node.js 5.4): node.js 10.16.3
* Operating System and version (desktop or mobile): Ubuntu 18

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia con lo Storybook-Native AppEntry.js menzionato nell’issue e ispeziona l’importazione di KeepAwake e la chiamata di attivazione. Riproduci il problema con bluebase storybook-native:init seguito da bluebase storybook-native:start; il lavoro è completato quando il comando viene eseguito correttamente senza l’errore undefined KeepAwake.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
react-native
Ambito
mobile
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.