Skip to content

Commit 06d6c13

Browse files
committed
Added NavigationBackAndroid to public api
Typescript didn't like import('NavigationBackAndroid') because it there isn't a NavigationBackAndroid.ts (microsoft/TypeScript#8328). The workarounds in the issue don't seem right so just used require directly instead of import. Need to import specific files so that they appear in the built package
1 parent 56daa59 commit 06d6c13

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
import * as React from 'react';
2-
3-
var NavigationBackAndroid = () => null;
4-
5-
export default NavigationBackAndroid;
1+
export default () => null;
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
import NavigationBackAndroid_android from './NavigationBackAndroid.android';
2+
import NavigationBackAndroid_ios from './NavigationBackAndroid.ios';
3+
var NavigationBackAndroid = require('./NavigationBackAndroid');
14
import SceneNavigator from './SceneNavigator';
25
import spring from './spring';
36

4-
export { SceneNavigator, spring };
7+
export { NavigationBackAndroid, SceneNavigator, spring };

0 commit comments

Comments
 (0)