Skip to content

Red screen on demo app start due to missing video package #1015

@hypest

Description

@hypest

The ReactVideoPackage got removed in #821, causing a red screen upon starting the demo app on Android:

TypeError: null is not an object (evaluating 'RCTVideoInstance.Constants')

This error is located at:
    in Video (at video-player.android.js:17)
    in RCTView (at View.js:45)
    in View (at video-player.android.js:16)
    in Video (at edit.native.js:215)
    in RCTView (at View.js:45)
    in View (at edit.native.js:213)
    in RCTView (at View.js:45)
    in View (at media-upload-progress.native.js:125)
    in MediaUploadProgress (at edit.native.js:188)
    in RCTView (at View.js:45)
    in View (at edit.native.js:177)
    in TouchableWithoutFeedback (at edit.native.js:176)
    in VideoEdit (at edit.native.js:18)
    in Edit (at with-filters/index.js:81)
    in WithFilters(Edit) (at block-edit/index.js:40)
    in BlockEdit (at block-holder.js:143)
    in RCTView (at View.js:45)
    in View (at block-holder.js:193)
    in RCTView (at View.js:45)
    in View (at block-holder.js:191)
    in TouchableWithoutFeedback (at block-holder.js:187)
    in BlockHolder (at with-dispatch/index.js:122)
    in ComponentWithDispatch (at with-dispatch/index.js:129)
    in WithDispatch(BlockHolder) (at with-select/index.js:187)
    in ComponentWithSelect (at with-select/index.js:196)
    in WithSelect(WithDispatch(BlockHolder)) (at block-manager.js:326)
    in RCTView (at View.js:45)
    in View (at readable-content-view.js:24)
    in RCTView (at View.js:45)
    in View (at readable-content-view.js:23)
    in ReadableContentView (at block-manager.js:325)
    in RCTView (at View.js:45)
    in View (at VirtualizedList.js:1743)
    in CellRenderer (at VirtualizedList.js:688)
    in RCTView (at View.js:45)
    in View (at ScrollView.js:953)
    in RCTScrollView (at ScrollView.js:1092)
    in ScrollView (at VirtualizedList.js:1066)
    in VirtualizedList (at FlatList.js:632)
    in FlatList (at keyboard-aware-flat-list.android.js:27)
    in RCTView (at View.js:45)
    in View (at KeyboardAvoidingView.js:221)
    in KeyboardAvoidingView (at keyboard-avoiding-view.android.js:21)
    in KeyboardAvoidingView (at keyboard-aware-flat-list.android.js:26)
    in KeyboardAwareFlatList (at block-manager.js:257)
    in RCTView (at View.js:45)
    in View (at block-manager.js:256)
    in RCTView (at View.js:45)
    in View (at SafeAreaView.js:37)
    in SafeAreaView (at block-manager.js:296)
    in BlockManager (at with-dispatch/index.js:122)
    in ComponentWithDispatch (at with-dispatch/index.js:129)
    in WithDispatch(BlockManager) (at with-select/index.js:187)
    in ComponentWithSelect (at with-select/index.js:196)
    in WithSelect(WithDispatch(BlockManager)) (at AppContainer.js:180)
    in SlotFillProvider (at provider/index.native.js:130)
    in BlockEditorProvider (at provider/index.native.js:21)
    in WithRegistry(BlockEditorProvider) (at with-dispatch/index.js:122)
    in ComponentWithDispatch (at with-dispatch/index.js:129)
    in WithDispatch(WithRegistry(BlockEditorProvider)) (at AppContainer.js:174)
    in AppContainer (at with-dispatch/index.js:122)
    in ComponentWithDispatch (at with-dispatch/index.js:129)
    in WithDispatch(AppContainer) (at with-select/index.js:187)
    in ComponentWithSelect (at with-select/index.js:196)
    in WithSelect(WithDispatch(AppContainer)) (at App.js:33)
    in AppProvider (at src/index.js:69)
    in RootComponent (at renderApplication.js:35)
    in RCTView (at View.js:45)
    in View (at AppContainer.js:98)
    in RCTView (at View.js:45)
    in View (at AppContainer.js:115)
    in AppContainer (at renderApplication.js:34)
render
    index.delta?platform=android&dev=true&minify=false:211668:46
finishClassComponent
    index.delta?platform=android&dev=true&minify=false:27531:43
updateClassComponent
    index.delta?platform=android&dev=true&minify=false:27494:50
performUnitOfWork
    index.delta?platform=android&dev=true&minify=false:31651:27
workLoop
    index.delta?platform=android&dev=true&minify=false:31685:47
renderRoot
    index.delta?platform=android&dev=true&minify=false:31751:21
performWorkOnRoot
    index.delta?platform=android&dev=true&minify=false:32489:23
performWork
    index.delta?platform=android&dev=true&minify=false:32416:30
performSyncWork
    index.delta?platform=android&dev=true&minify=false:32392:20
requestWork
    index.delta?platform=android&dev=true&minify=false:32290:26
scheduleWork
    index.delta?platform=android&dev=true&minify=false:32163:22
enqueueSetState
    index.delta?platform=android&dev=true&minify=false:24416:23
setState
    index.delta?platform=android&dev=true&minify=false:2635:37
_updateCellsToRender
    index.delta?platform=android&dev=true&minify=false:64969:23
<unknown>
    index.delta?platform=android&dev=true&minify=false:66046:28
processNext
    index.delta?platform=android&dev=true&minify=false:61145:19
_processUpdate
    index.delta?platform=android&dev=true&minify=false:61049:31
_callTimer
    index.delta?platform=android&dev=true&minify=false:39069:17
_callImmediatesPass
    index.delta?platform=android&dev=true&minify=false:39105:19
callImmediates
    index.delta?platform=android&dev=true&minify=false:39324:33
__callImmediates
    index.delta?platform=android&dev=true&minify=false:16113:35
<unknown>
    index.delta?platform=android&dev=true&minify=false:15934:34
__guard
    index.delta?platform=android&dev=true&minify=false:16096:15
flushedQueue
    index.delta?platform=android&dev=true&minify=false:15933:21

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions