From 6fe3f1f533ae219311c025518197e43cfca2a603 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 19 Aug 2016 16:46:07 -0700 Subject: [PATCH] Don't persist RTL across examples --- examples/apis/I18nManager/RTLExample.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/apis/I18nManager/RTLExample.js b/examples/apis/I18nManager/RTLExample.js index e0fe0162..62e9445c 100644 --- a/examples/apis/I18nManager/RTLExample.js +++ b/examples/apis/I18nManager/RTLExample.js @@ -3,6 +3,10 @@ import React, { Component } from 'react'; import { storiesOf, action } from '@kadira/storybook'; class RTLExample extends Component { + componentWillUnmount() { + I18nManager.setPreferredLanguageRTL(false) + } + render() { return (