Browse Source

PlayerConextProvider 추가

goodboy 5 years ago
parent
commit
8adc814e88
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/pages/_5_Root.js

+ 4 - 5
src/pages/_5_Root.js

@@ -6,7 +6,7 @@ import List from './_7_List';
 import TabBar from '../components/TabBar';
 import Player from "../components/Player";
 //import Player from "./PlayerGesture"; 
-
+import { PlayerConextProvider } from '../components/PlayerReducer'
 C.addColor("#d7d7d7", "color-listbg");
 
 const BTNS = [
@@ -66,10 +66,9 @@ export default (props)=>{
         <C.View cls="flx1 bgc-color-white"> 
             <C.Comp.Header  {...props}/>
             <Page   {...props} Pages={sel_idx == -1 ? {} : BTNS[targetIdx][sel_idx]}  startPlay={startPlay} bPlay={bPlay}/>
-            
-            {bPlay ? <Player {...props} Pages={curPlayInfo} tabPosition={tabPosition} closePlayer={()=>setbPlay(false)}/>  : null}
-            {/* {bPlay ? <C.View cls="flx0.1"/>  : null} */}
-
+            <PlayerConextProvider>
+                {bPlay ? <Player {...props} Pages={curPlayInfo} tabPosition={tabPosition} closePlayer={()=>setbPlay(false)}/>  : null}
+            </PlayerConextProvider>
             <TabBar setTabPosition={setTabPosition} onTabPress={onTabPress} BTNS={BTNS}/>  
         </C.View> 
     )