mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-05 11:19:34 +00:00
Rename I18nManager example
This commit is contained in:
+3
-3
@@ -1,8 +1,8 @@
|
|||||||
|
import { storiesOf } from '@kadira/storybook';
|
||||||
import { I18nManager, StyleSheet, TouchableHighlight, Text, View } from 'react-native'
|
import { I18nManager, StyleSheet, TouchableHighlight, Text, View } from 'react-native'
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { storiesOf, action } from '@kadira/storybook';
|
|
||||||
|
|
||||||
class RTLExample extends Component {
|
class I18nManagerExample extends Component {
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
I18nManager.setPreferredLanguageRTL(false)
|
I18nManager.setPreferredLanguageRTL(false)
|
||||||
}
|
}
|
||||||
@@ -75,5 +75,5 @@ const styles = StyleSheet.create({
|
|||||||
|
|
||||||
storiesOf('api: I18nManager', module)
|
storiesOf('api: I18nManager', module)
|
||||||
.add('RTL layout', () => (
|
.add('RTL layout', () => (
|
||||||
<RTLExample />
|
<I18nManagerExample />
|
||||||
))
|
))
|
||||||
Reference in New Issue
Block a user