Просмотр исходного кода

Export interfaces

This commit exports interfaces used by RNN so they can be used to improve type checking. closes #4177

Usage

import {Options} from 'react-native-navigation';
const options: Options = {}
Guy Carmeli 6 лет назад
Родитель
Сommit
760e6cf1ac
1 измененных файлов: 6 добавлений и 0 удалений
  1. 6
    0
      lib/src/index.ts

+ 6
- 0
lib/src/index.ts Просмотреть файл

3
 const singleton = new NavigationClass();
3
 const singleton = new NavigationClass();
4
 
4
 
5
 export const Navigation = singleton;
5
 export const Navigation = singleton;
6
+export * from './adapters/Constants';
7
+export * from './interfaces/ComponentEvents';
8
+export * from './interfaces/Events';
9
+export * from './interfaces/EventSubscription';
10
+export * from './interfaces/Layout';
11
+export * from './interfaces/Options';