File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 uses : ./.github/actions/setup
3434
3535 - name : Run unit tests
36- run : yarn test --maxWorkers=2 --coverage
36+ run : yarn test --maxWorkers=2 --passWithNoTests -- coverage
3737
3838 build-library :
3939 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1- const { withFilePreviewTurbo } = require ( './lib/commonjs/expo' ) ;
1+ const {
2+ withFilePreviewTurbo,
3+ } = require ( './lib/commonjs/plugin/withFilePreviewTurbo' ) ;
24
35module . exports = withFilePreviewTurbo ;
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-file-viewer-turbo" ,
3- "version" : " 0.2.1 " ,
3+ "version" : " 0.3.0 " ,
44 "description" : " Native file viewer for react-native - now with TurboModules support" ,
55 "source" : " ./src/index.tsx" ,
66 "main" : " ./lib/commonjs/index.js" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,14 +14,10 @@ export const withFilePreviewTurbo: Expo.ConfigPlugin<Props> = (
1414 const withAndroidManifest : Expo . ConfigPlugin < Props > = ( config ) =>
1515 Expo . withAndroidManifest ( config , ( config ) => {
1616 config . modResults . manifest . queries . push ( {
17- intent : [
18- {
19- action : [ { $ : { 'android:name' : 'android.intent.action.VIEW' } } ] ,
20- data : props . mimeTypes . map ( ( mimeType ) => ( {
21- $ : { 'android:mimeType' : mimeType } ,
22- } ) ) ,
23- } ,
24- ] ,
17+ intent : props . mimeTypes . map ( ( mimeType ) => ( {
18+ action : [ { $ : { 'android:name' : 'android.intent.action.VIEW' } } ] ,
19+ data : [ { $ : { 'android:mimeType' : mimeType } } ] ,
20+ } ) ) ,
2521 } ) ;
2622
2723 return config ;
You can’t perform that action at this time.
0 commit comments